summary refs log tree commit diff
path: root/src/nm-dhcp6-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nm-dhcp6-config.c')
-rw-r--r--src/nm-dhcp6-config.c41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/nm-dhcp6-config.c b/src/nm-dhcp6-config.c
index c50b8fdd..f93e9644 100644
--- a/src/nm-dhcp6-config.c
+++ b/src/nm-dhcp6-config.c
@@ -18,10 +18,12 @@
  * Copyright (C) 2008 Red Hat, Inc.
  */
 
+#include "config.h"
+
 #include <glib.h>
 #include <string.h>
 
-#include "NetworkManager.h"
+#include "nm-dbus-interface.h"
 #include "nm-dbus-manager.h"
 #include "nm-dhcp6-config.h"
 #include "nm-dhcp6-config-glue.h"
@@ -29,14 +31,14 @@
 #include "nm-utils.h"
 
 
-G_DEFINE_TYPE (NMDHCP6Config, nm_dhcp6_config, G_TYPE_OBJECT)
+G_DEFINE_TYPE (NMDhcp6Config, nm_dhcp6_config, G_TYPE_OBJECT)
 
-#define NM_DHCP6_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_DHCP6_CONFIG, NMDHCP6ConfigPrivate))
+#define NM_DHCP6_CONFIG_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_DHCP6_CONFIG, NMDhcp6ConfigPrivate))
 
 typedef struct {
 	char *dbus_path;
 	GHashTable *options;
-} NMDHCP6ConfigPrivate;
+} NMDhcp6ConfigPrivate;
 
 
 enum {
@@ -47,14 +49,14 @@ enum {
 };
 
 
-NMDHCP6Config *
+NMDhcp6Config *
 nm_dhcp6_config_new (void)
 {
 	return NM_DHCP6_CONFIG (g_object_new (NM_TYPE_DHCP6_CONFIG, NULL));
 }
 
 void
-nm_dhcp6_config_add_option (NMDHCP6Config *self,
+nm_dhcp6_config_add_option (NMDhcp6Config *self,
                             const char *key,
                             const char *option)
 {
@@ -72,7 +74,7 @@ nm_dhcp6_config_add_option (NMDHCP6Config *self,
 }
 
 void
-nm_dhcp6_config_reset (NMDHCP6Config *self)
+nm_dhcp6_config_reset (NMDhcp6Config *self)
 {
 	g_return_if_fail (NM_IS_DHCP6_CONFIG (self));
 
@@ -81,7 +83,7 @@ nm_dhcp6_config_reset (NMDHCP6Config *self)
 }
 
 const char *
-nm_dhcp6_config_get_option (NMDHCP6Config *self, const char *key)
+nm_dhcp6_config_get_option (NMDhcp6Config *self, const char *key)
 {
 	GValue *value;
 
@@ -94,7 +96,7 @@ nm_dhcp6_config_get_option (NMDHCP6Config *self, const char *key)
 
 /* Caller owns the list, but not the values in the list */
 GSList *
-nm_dhcp6_config_list_options (NMDHCP6Config *self)
+nm_dhcp6_config_list_options (NMDhcp6Config *self)
 {
 	GHashTableIter iter;
 	const char *option = NULL;
@@ -110,7 +112,7 @@ nm_dhcp6_config_list_options (NMDHCP6Config *self)
 }
 
 const char *
-nm_dhcp6_config_get_dbus_path (NMDHCP6Config *self)
+nm_dhcp6_config_get_dbus_path (NMDhcp6Config *self)
 {
 	g_return_val_if_fail (NM_IS_DHCP6_CONFIG (self), NULL);
 
@@ -127,9 +129,9 @@ nm_gvalue_destroy (gpointer data)
 }
 
 static void
-nm_dhcp6_config_init (NMDHCP6Config *self)
+nm_dhcp6_config_init (NMDhcp6Config *self)
 {
-	NMDHCP6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (self);
+	NMDhcp6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (self);
 	static guint32 counter = 0;
 
 	priv->dbus_path = g_strdup_printf (NM_DBUS_PATH "/DHCP6Config/%d", counter++);
@@ -141,7 +143,7 @@ nm_dhcp6_config_init (NMDHCP6Config *self)
 static void
 finalize (GObject *object)
 {
-	NMDHCP6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (object);
+	NMDhcp6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (object);
 
 	g_free (priv->dbus_path);
 	g_hash_table_destroy (priv->options);
@@ -153,7 +155,7 @@ static void
 get_property (GObject *object, guint prop_id,
 			  GValue *value, GParamSpec *pspec)
 {
-	NMDHCP6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (object);
+	NMDhcp6ConfigPrivate *priv = NM_DHCP6_CONFIG_GET_PRIVATE (object);
 
 	switch (prop_id) {
 	case PROP_OPTIONS:
@@ -166,11 +168,11 @@ get_property (GObject *object, guint prop_id,
 }
 
 static void
-nm_dhcp6_config_class_init (NMDHCP6ConfigClass *config_class)
+nm_dhcp6_config_class_init (NMDhcp6ConfigClass *config_class)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (config_class);
 
-	g_type_class_add_private (config_class, sizeof (NMDHCP6ConfigPrivate));
+	g_type_class_add_private (config_class, sizeof (NMDhcp6ConfigPrivate));
 
 	/* virtual methods */
 	object_class->get_property = get_property;
@@ -179,11 +181,10 @@ nm_dhcp6_config_class_init (NMDHCP6ConfigClass *config_class)
 	/* properties */
 	g_object_class_install_property
 		(object_class, PROP_OPTIONS,
-		 g_param_spec_boxed (NM_DHCP6_CONFIG_OPTIONS,
-		                     "Options",
-		                     "DHCP configuration options returned by the server",
+		 g_param_spec_boxed (NM_DHCP6_CONFIG_OPTIONS, "", "",
 		                     DBUS_TYPE_G_MAP_OF_VARIANT,
-		                     G_PARAM_READABLE));
+		                     G_PARAM_READABLE |
+		                     G_PARAM_STATIC_STRINGS));
 
 	nm_dbus_manager_register_exported_type (nm_dbus_manager_get (),
 	                                        G_TYPE_FROM_CLASS (config_class),