summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2009-11-10 12:22:45 -0800
committerDan Williams <dcbw@redhat.com>2009-11-10 12:22:45 -0800
commitcfec3f3a6d2c290db282b878c7b62dae700b14b7 (patch)
tree7833fef547bdbf553ff949caf5c69f90b0856043
parent972b7ed70a4bc1d152beebdaa7baa22ae1b33fb1 (diff)
downloadNetworkManager-cfec3f3a6d2c290db282b878c7b62dae700b14b7.tar.gz
libnm-util: add missing nm_setting_olpc_mesh_new()
-rw-r--r--libnm-util/libnm-util.ver1
-rw-r--r--libnm-util/nm-setting-olpc-mesh.c12
-rw-r--r--libnm-util/nm-setting-olpc-mesh.h1
3 files changed, 14 insertions, 0 deletions
diff --git a/libnm-util/libnm-util.ver b/libnm-util/libnm-util.ver
index db50282551..17ce1749ff 100644
--- a/libnm-util/libnm-util.ver
+++ b/libnm-util/libnm-util.ver
@@ -335,6 +335,7 @@ global:
nm_setting_olpc_mesh_get_ssid;
nm_setting_olpc_mesh_get_channel;
nm_setting_olpc_mesh_get_dhcp_anycast_address;
+ nm_setting_olpc_mesh_new;
nm_utils_deinit;
nm_utils_rsa_key_encrypt;
nm_utils_escape_ssid;
diff --git a/libnm-util/nm-setting-olpc-mesh.c b/libnm-util/nm-setting-olpc-mesh.c
index 0ba62a4f4a..37b565d22e 100644
--- a/libnm-util/nm-setting-olpc-mesh.c
+++ b/libnm-util/nm-setting-olpc-mesh.c
@@ -91,6 +91,18 @@ enum {
LAST_PROP
};
+/**
+ * nm_setting_olpc_mesh_new:
+ *
+ * Creates a new #NMSettingOlpcMesh object with default values.
+ *
+ * Returns: the new empty #NMSettingOlpcMesh object
+ **/
+NMSetting *nm_setting_olpc_mesh_new (void)
+{
+ return (NMSetting *) g_object_new (NM_TYPE_SETTING_OLPC_MESH, NULL);
+}
+
static void
nm_setting_olpc_mesh_init (NMSettingOlpcMesh *setting)
{
diff --git a/libnm-util/nm-setting-olpc-mesh.h b/libnm-util/nm-setting-olpc-mesh.h
index 267fdad4fd..9477dd91db 100644
--- a/libnm-util/nm-setting-olpc-mesh.h
+++ b/libnm-util/nm-setting-olpc-mesh.h
@@ -49,6 +49,7 @@ typedef struct {
GType nm_setting_olpc_mesh_get_type (void);
+NMSetting * nm_setting_olpc_mesh_new (void);
const GByteArray *nm_setting_olpc_mesh_get_ssid (NMSettingOlpcMesh *setting);
guint32 nm_setting_olpc_mesh_get_channel (NMSettingOlpcMesh *setting);
const GByteArray *nm_setting_olpc_mesh_get_dhcp_anycast_address (NMSettingOlpcMesh *setting);