aboutsummaryrefslogtreecommitdiffstats
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2024-10-09Rework glib main loop initializationHEADtrout_19.90.0trout/19.90.019.90.0masterScott Murray1-1/+3
Changes: - To avoid interactions with Qt6's new and/or different use of the glib main loop, explicitly create new main context and loop instances for our processing thread to avoid any interactions. This includes making the new context the default for the thread, which impacts implicit usage in glib functions. - Refactor things a bit to have agent registration run completely asynchronously to avoid that operation blocking Qt initialization. - To expand on the above, add new checking of the agent state to the connect & disconnect calls that rely on the agent, and add a new connman_get_agent_registered API function that clients can use to check the state. - Added some more DEBUG prints for potential future use, and bumped the default log level to WARNING to make it easier to diagnose any agent registration failures. Bug-AGL: SPEC-5257 Change-Id: I290f81c99b4ffc2939ef6f503505deabbd1ebc0b Signed-off-by: Scott Murray <scott.murray@konsulko.com>
2022-01-28Initial check-inmarlin_12.92.0marlin/12.92.0lamprey_12.1.1lamprey/12.1.112.92.012.1.1Scott Murray2-0/+137
GLib based interface library for ConnMan, factored out of the agl-service-network binding code. See README.md for build and usage notes and the mapping of the new source files to those in the binding if that is for some reason required. Bug-AGL: SPEC-4182 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I13c0982c790353c6e48f21bb8c4953a676840dbb