summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-01-28 16:14:59 -0500
committerScott Murray <scott.murray@konsulko.com>2022-01-28 16:19:28 -0500
commit5d094ec17f0f60489efe9df6c113be62f80b4c2a (patch)
tree266b3471abb9520afaca36fe0af491e8a72ec98b /README.md
parent4da886055d7cdc659858eec3a45e14f52fcfa643 (diff)
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
Diffstat (limited to 'README.md')
-rw-r--r--README.md51
1 files changed, 51 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..3e8cfc0
--- /dev/null
+++ b/README.md
@@ -0,0 +1,51 @@
+GLib ConnMan interface library
+----------------------------
+Derived from AGL network binding source at
+[https://git.automotivelinux.org/apps/agl-service-network/]
+
+Source refactoring from the binding (not necessarily exhaustive):
+* network-api.c -> api.c, call_work.c
+* network-connman.c -> connman-call.c
+* network-common.h -> common.h, connman-call.h, call_work.h
+* network-util.c -> mostly redundant, required things moved to api.c, connman-call.c
+
+Copyright dates in files reflect their original creation dates and include
+revisions made in agl-service-network before December 2021.
+
+Building
+--------
+The build requirements are:
+* glib 2.0 headers and libraries (from e.g. glib2-devel on Fedora or CentOS,
+ libglib2.0-dev on Debian or Ubuntu).
+* meson
+
+To build:
+```
+meson build/
+ninja -C build/
+```
+
+Usage Notes
+-----------
+* Users only need include `connman-glib.h` and link to the library.
+* API calls generally return a gboolean, with `FALSE` indicating failure.
+* `connman_init` must be called before any other API calls except
+ `connman_set_log_level` or one of the callback registration functions
+ (e.g. `connman_add_manager_event_callback`).
+* A return code of `TRUE` from `connman_init` indicates D-Bus connection to
+ **ConnMan** has succeeded.
+* Callbacks may be registered after calling `connman_init`, but note that there
+ is a possibility that registration calls may briefly block if they occur
+ during processing of an associated event.
+* It is advised that only one primary user of the library enable agent support
+ to avoid conflicts.
+
+Contributing
+------------
+Questions can be sent to the agl-dev-community mailing list at
+<https://lists.automotivelinux.org/g/agl-dev-community>.
+
+Bugs can be filed on the AGL JIRA instance at <https://jira.automotivelinux.org>.
+
+Source contributions need to go through the AGL Gerrit instance, see
+<https://wiki.automotivelinux.org/agl-distro/contributing>.