examples: build C examples
This commit is contained in:
@@ -1,2 +1,19 @@
|
||||
INCLUDES = -I${top_srcdir}/libnm-util \
|
||||
-I${top_srcdir}/libnm-glib \
|
||||
-I${top_srcdir}/include
|
||||
|
||||
AM_CPPFLAGS = \
|
||||
$(DBUS_CFLAGS) \
|
||||
$(GLIB_CFLAGS)
|
||||
|
||||
noinst_PROGRAMS = add-connection-glib
|
||||
|
||||
add_connection_glib_SOURCES = add-connection-glib.c
|
||||
add_connection_glib_LDADD = \
|
||||
$(top_builddir)/libnm-util/libnm-util.la \
|
||||
$(DBUS_LIBS) \
|
||||
$(GLIB_LIBS)
|
||||
|
||||
EXTRA_DIST = \
|
||||
add-connection-glib.c
|
||||
|
||||
|
@@ -38,7 +38,8 @@
|
||||
#define DBUS_TYPE_G_MAP_OF_VARIANT (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE))
|
||||
#define DBUS_TYPE_G_MAP_OF_MAP_OF_VARIANT (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, DBUS_TYPE_G_MAP_OF_VARIANT))
|
||||
|
||||
void add_connection (DBusGProxy *proxy, const char *con_name)
|
||||
static void
|
||||
add_connection (DBusGProxy *proxy, const char *con_name)
|
||||
{
|
||||
NMConnection *connection;
|
||||
NMSettingConnection *s_con;
|
||||
|
Reference in New Issue
Block a user