SUBDIRS = \
marshallers \
+ include \
libnm-util \
libnm-glib \
- src \
- include \
introspection \
- callouts \
system-settings \
+ src \
+ callouts \
cli \
tools \
policy \
INCLUDES = -I${top_srcdir} \
-I${top_srcdir}/include \
-I${top_srcdir}/libnm-util \
- -I${top_srcdir}/libnm-glib \
-I${top_srcdir}/src/logging \
-I${top_srcdir}/src \
-I${top_builddir}/marshallers
libsettings_la_LIBADD = \
$(top_builddir)/libnm-util/libnm-util.la \
- $(top_builddir)/libnm-glib/libnm-glib.la \
$(top_builddir)/marshallers/libmarshallers.la \
$(top_builddir)/src/logging/libnm-logging.la \
+ $(top_builddir)/system-settings/plugins/keyfile/libnm-settings-plugin-keyfile.la \
$(DBUS_LIBS) \
$(GLIB_LIBS) \
$(GMODULE_LIBS) \
libsettings_la_LDFLAGS = -rdynamic
-
nm-settings-glue.h: $(top_srcdir)/introspection/nm-settings.xml
$(AM_V_GEN) dbus-binding-tool --prefix=nm_settings --mode=glib-server --output=$@ $<
#include "nm-dbus-manager.h"
#include "nm-manager-auth.h"
#include "nm-session-monitor.h"
+#include "system-settings/plugins/keyfile/plugin.h"
#define CONFIG_KEY_NO_AUTO_DEFAULT "no-auto-default"
GObject *obj;
GObject * (*factory_func) (void);
+ /* keyfile plugin built in now */
+ if (!strcmp (pname, "keyfile"))
+ continue;
+
/* ifcfg-fedora was renamed ifcfg-rh; handle old configs here */
if (!strcmp (pname, "ifcfg-fedora"))
pname = "ifcfg-rh";
NMSettings *
nm_settings_new (const char *config_file,
- const char *plugins,
- GError **error)
+ const char *plugins,
+ GError **error)
{
NMSettings *self;
NMSettingsPrivate *priv;
+ GObject *keyfile_plugin;
self = g_object_new (NM_TYPE_SETTINGS, NULL);
if (!self)
unmanaged_specs_changed (NULL, self);
}
+ /* Add the keyfile plugin last */
+ keyfile_plugin = nm_settings_keyfile_plugin_new ();
+ g_assert (keyfile_plugin);
+ add_plugin (self, NM_SYSTEM_CONFIG_INTERFACE (keyfile_plugin));
+
dbus_g_connection_register_g_object (priv->bus, NM_DBUS_PATH_SETTINGS, G_OBJECT (self));
return self;
}
INCLUDES = \
-I$(top_srcdir)/src/settings \
-I$(top_srcdir)/include \
- -I$(top_srcdir)/libnm-util \
- -I$(top_srcdir)/libnm-glib
+ -I$(top_srcdir)/libnm-util
-pkglib_LTLIBRARIES = libnm-settings-plugin-keyfile.la
+noinst_LTLIBRARIES = \
+ libkeyfile-io.la \
+ libnm-settings-plugin-keyfile.la
-noinst_LTLIBRARIES = libkeyfile-io.la
+##### I/O library for testcases #####
libkeyfile_io_la_SOURCES = \
reader.c \
libkeyfile_io_la_LIBADD = $(GLIB_LIBS)
+#####################################
+
libnm_settings_plugin_keyfile_la_SOURCES = \
nm-keyfile-connection.c \
nm-keyfile-connection.h \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DG_DISABLE_DEPRECATED
-libnm_settings_plugin_keyfile_la_LDFLAGS = -module -avoid-version
libnm_settings_plugin_keyfile_la_LIBADD = \
$(top_builddir)/libnm-util/libnm-util.la \
- $(top_builddir)/libnm-glib/libnm-glib.la \
libkeyfile-io.la \
$(GLIB_LIBS) \
$(GMODULE_LIBS) \
$(DBUS_LIBS) \
$(GIO_LIBS)
+libnm_settings_plugin_keyfile_la_LDFLAGS = -rdynamic
+
keyfiledir=$(sysconfdir)/NetworkManager/system-connections
install-data-hook:
system_config_interface_class->get_unmanaged_specs = get_unmanaged_specs;
}
-G_MODULE_EXPORT GObject *
-nm_system_config_factory (void)
+GObject *
+nm_settings_keyfile_plugin_new (void)
{
static SCPluginKeyfile *singleton = NULL;
GQuark keyfile_plugin_error_quark (void);
+GObject *nm_settings_keyfile_plugin_new (void);
+
#endif /* _PLUGIN_H_ */