2007-11-29 Dan Williams <dcbw@redhat.com>
* system-settings/src/nm-system-config-interface.h system-settings/src/nm-system-config-interface.c - (nm_system_config_interface_init, nm_system_config_interface_get_connections): add * system-settings/src/main.c - (load_plugins, load_connections, main): use a GSList for plugins to ensure priority ordering * system-settings/plugins/ifcfg/parser.c - (ifcfg_error_quark): move to plugin.c, and rename * system-settings/plugins/ifcfg/plugin.h system-settings/plugins/ifcfg/plugin.c - (ifcfg_plugin_error_quark): move here from parser.c - rework connection loading and initialization - Add preliminary inotify support for network profile config file git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3117 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
#include "nm-system-config-interface.h"
|
||||
|
||||
static void
|
||||
nm_system_config_interface_init (gpointer g_iface)
|
||||
interface_init (gpointer g_iface)
|
||||
{
|
||||
GType iface_type = G_TYPE_FROM_INTERFACE (g_iface);
|
||||
static gboolean initialized = FALSE;
|
||||
@@ -88,7 +88,7 @@ nm_system_config_interface_get_type (void)
|
||||
if (!system_config_interface_type) {
|
||||
const GTypeInfo system_config_interface_info = {
|
||||
sizeof (NMSystemConfigInterface), /* class_size */
|
||||
nm_system_config_interface_init, /* base_init */
|
||||
interface_init, /* base_init */
|
||||
NULL, /* base_finalize */
|
||||
NULL,
|
||||
NULL, /* class_finalize */
|
||||
@@ -109,3 +109,22 @@ nm_system_config_interface_get_type (void)
|
||||
return system_config_interface_type;
|
||||
}
|
||||
|
||||
void
|
||||
nm_system_config_interface_init (NMSystemConfigInterface *config)
|
||||
{
|
||||
g_return_if_fail (config != NULL);
|
||||
|
||||
if (NM_SYSTEM_CONFIG_INTERFACE_GET_INTERFACE (config)->init)
|
||||
NM_SYSTEM_CONFIG_INTERFACE_GET_INTERFACE (config)->init (config);
|
||||
}
|
||||
|
||||
GSList *
|
||||
nm_system_config_interface_get_connections (NMSystemConfigInterface *config)
|
||||
{
|
||||
g_return_val_if_fail (config != NULL, NULL);
|
||||
|
||||
if (NM_SYSTEM_CONFIG_INTERFACE_GET_INTERFACE (config)->get_connections)
|
||||
return NM_SYSTEM_CONFIG_INTERFACE_GET_INTERFACE (config)->get_connections (config);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user