diff options
author | Thomas Haller <thaller@redhat.com> | 2014-02-27 13:11:52 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-02-27 13:33:36 +0100 |
commit | 50bb818208669767ac7f3dbf095de77c98efaa7c (patch) | |
tree | a942a27df3eeea681c70969e75c9d262d4c937af | |
parent | f0a8b3a76d2e374baf8751885973def451bc2049 (diff) | |
download | NetworkManager-th/wip/setting-metadata2-bgo732292.tar.gz |
libnl-util: add nm-meta-setting.hth/wip/setting-metadata2-bgo732292th/setting-metadata2-bgo732292
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | libnm-util/Makefile.am | 2 | ||||
-rw-r--r-- | libnm-util/nm-setting-property-meta.c | 57 | ||||
-rw-r--r-- | libnm-util/nm-setting-property-meta.h | 83 |
3 files changed, 142 insertions, 0 deletions
diff --git a/libnm-util/Makefile.am b/libnm-util/Makefile.am index 0e99da28d7..dbed0e01ec 100644 --- a/libnm-util/Makefile.am +++ b/libnm-util/Makefile.am @@ -23,6 +23,7 @@ lib_LTLIBRARIES=libnm-util.la libnm_util_include_HEADERS = \ nm-connection.h \ + nm-setting-property-meta.h \ nm-setting.h \ nm-setting-8021x.h \ nm-setting-adsl.h \ @@ -62,6 +63,7 @@ libnm_util_la_private_headers = \ libnm_util_la_csources = \ crypto.c \ nm-connection.c \ + nm-setting-property-meta.c \ nm-param-spec-specialized.c \ nm-setting.c \ nm-setting-8021x.c \ diff --git a/libnm-util/nm-setting-property-meta.c b/libnm-util/nm-setting-property-meta.c new file mode 100644 index 0000000000..b14e4d2a8a --- /dev/null +++ b/libnm-util/nm-setting-property-meta.c @@ -0,0 +1,57 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ + +/* + * Dan Williams <dcbw@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * (C) Copyright 2014 Red Hat, Inc. + */ + +#include "nm-setting-property-meta.h" + + + +G_DEFINE_ABSTRACT_TYPE (NMSettingPropertyMeta, nm_setting_property_meta, G_TYPE_OBJECT) + +#define NM_SETTING_PROPERTY_META_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), NM_TYPE_SETTING_PROPERTY_META, NMSettingPropertyMetaPrivate)) + +typedef struct { +} NMSettingPropertyMetaPrivate; + +enum { + PROP_0, + PROP_LAST +}; + + + + +static void +nm_setting_property_meta_class_init (NMSettingPropertyMetaClass *klass) +{ + GObjectClass *object_class = G_OBJECT_CLASS (klass); + + g_type_class_add_private (klass, sizeof (NMSettingPropertyMetaPrivate)); + + /* virtual methods */ + + /* Properties */ + +} + + + diff --git a/libnm-util/nm-setting-property-meta.h b/libnm-util/nm-setting-property-meta.h new file mode 100644 index 0000000000..6c8822a469 --- /dev/null +++ b/libnm-util/nm-setting-property-meta.h @@ -0,0 +1,83 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ + +/* + * Dan Williams <dcbw@redhat.com> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301 USA. + * + * (C) Copyright 2014 Red Hat, Inc. + */ + +#ifndef __NM_SETTING_PROPERTY_META_H__ +#define __NM_SETTING_PROPERTY_META_H__ + + +#include <glib.h> +#include <glib-object.h> + +G_BEGIN_DECLS + +#define NM_TYPE_SETTING_PROPERTY_META (nm_setting_get_type ()) +#define NM_SETTING_PROPERTY_META(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_PROPERTY_META, NMSetting)) +#define NM_SETTING_PROPERTY_META_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_PROPERTY_META, NMSettingClass)) +#define NM_IS_SETTING_PROPERTY_META(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_PROPERTY_META)) +#define NM_IS_SETTING_PROPERTY_META_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_PROPERTY_META)) +#define NM_SETTING_PROPERTY_META_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_PROPERTY_META, NMSettingClass)) + +/** + * NMSettingPropertyMeta: + * + * The NMSettingPropertyMeta struct contains only private data. + * It should only be accessed through the functions described below. + */ +typedef struct { + GObject parent; +} NMSettingPropertyMeta; + + + +typedef struct { + GObjectClass parent; + + /* Padding for future expansion */ + void (*_reserved1) (void); + void (*_reserved2) (void); + void (*_reserved3) (void); + void (*_reserved4) (void); + void (*_reserved5) (void); + void (*_reserved6) (void); + void (*_reserved7) (void); + void (*_reserved8) (void); + void (*_reserved9) (void); + void (*_reserved10) (void); + void (*_reserved11) (void); + void (*_reserved12) (void); + void (*_reserved13) (void); + void (*_reserved14) (void); + void (*_reserved15) (void); + void (*_reserved16) (void); + void (*_reserved17) (void); + void (*_reserved18) (void); + void (*_reserved19) (void); + void (*_reserved20) (void); +} NMSettingPropertyMetaClass; + + +GType nm_setting_property_meta_get_type (void); + +G_END_DECLS + +#endif /* __NM_SETTING_PROPERTY_META_H__ */ |