examples: port dbus-glib-based examples to gdbus
authorDan Winship <danw@gnome.org>
Wed, 20 Aug 2014 14:08:18 +0000 (10:08 -0400)
committerDan Winship <danw@gnome.org>
Thu, 4 Sep 2014 22:19:22 +0000 (18:19 -0400)
commit9e5ddb58305c3f0b3041606e2a790b3cc75c92c4
tree08d2a70319396fe04014e23b0ae70d3255e8c8a1
parent89228569f89036a5f492611cbc6c602a903b6a4e
examples: port dbus-glib-based examples to gdbus

Port the dbus-glib-based examples to GDBus.

Also, don't use libnm in them at all; there's not much point in
examples that use the D-Bus API directly if they're just going to fall
back to libnm for the hard stuff... (And also, this avoids the problem
that GDBus uses GVariant, while the libnm-core APIs currently still
use GHashTables.)

Also fix up some comment grammar and copyright style, and add emacs
modelines where missing.

Also rename the existing GDBus-based examples to have names ending in
"-gdbus", not "-GDBus", since there's no reason to gratuitously
capitalize here.
14 files changed:
.gitignore
examples/C/glib/Makefile.am
examples/C/glib/add-connection-dbus-glib.c [deleted file]
examples/C/glib/add-connection-gdbus.c [new file with mode: 0644]
examples/C/glib/add-connection-libnm.c
examples/C/glib/get-active-connections-dbus-glib.c [deleted file]
examples/C/glib/get-active-connections-gdbus.c [new file with mode: 0644]
examples/C/glib/get-ap-info-libnm.c
examples/C/glib/list-connections-dbus-glib.c [deleted file]
examples/C/glib/list-connections-gdbus.c [new file with mode: 0644]
examples/C/glib/list-connections-libnm.c
examples/C/glib/monitor-nm-running-dbus-glib.c [deleted file]
examples/C/glib/monitor-nm-running-gdbus.c [moved from examples/C/glib/monitor-nm-running-GDBus.c with 94% similarity]
examples/C/glib/monitor-nm-state-gdbus.c [moved from examples/C/glib/monitor-nm-state-GDBus.c with 93% similarity]