diff options
author | Tambet Ingo <tambet@ximian.com> | 2007-02-16 11:23:49 +0000 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2007-02-16 11:23:49 +0000 |
commit | c40051389cccf8171a26938db7c167b9ca0010cf (patch) | |
tree | 387d614ac1e9e04dc2034f852af875757950e6d8 /src/nm-ip4-config.h | |
parent | 333f46827183b47d3d8b17a3453c9d55fb10f267 (diff) | |
download | NetworkManager-c40051389cccf8171a26938db7c167b9ca0010cf.tar.gz |
2007-02-16 Tambet Ingo <tambet@ximian.com>
* introspection/nm-ip4-config.xml: Implement.
* libnm-glib/libnm-glib-test.c: Use new DBUS API in tests.
* libnm-glib/nm-ip4-config.c:
* libnm-glib/nm-ip4-config.c: Implement.
* src/nm-ap-security[-*]: Remove circular dependencies between APs and AP
securities. APs reference security.
* src/nm-device-802-11-wireless.c: Implement missing properties that need to
be exported over DBUS.
* src/nm-device-802-3-ethernet.c: Ditto.
* src/NetworkManagerAP.c:
* src/NetworkManagerAP.h:
- Convert to GObject, export over DBUS.
* src/nm-ip4-config.h:
* src/nm-ip4-config.h:
- Convert to GObject, export over DBUS.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2322 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'src/nm-ip4-config.h')
-rw-r--r-- | src/nm-ip4-config.h | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/src/nm-ip4-config.h b/src/nm-ip4-config.h index 9bbd2231dc..d3e4f44d55 100644 --- a/src/nm-ip4-config.h +++ b/src/nm-ip4-config.h @@ -22,15 +22,39 @@ #ifndef NM_IP4_CONFIG_H #define NM_IP4_CONFIG_H -#include <glib.h> +#include <glib/gtypes.h> +#include <glib-object.h> -typedef struct NMIP4Config NMIP4Config; +#define NM_TYPE_IP4_CONFIG (nm_ip4_config_get_type ()) +#define NM_IP4_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_IP4_CONFIG, NMIP4Config)) +#define NM_IP4_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_IP4_CONFIG, NMIP4ConfigClass)) +#define NM_IS_IP4_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_IP4_CONFIG)) +#define NM_IS_IP4_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_IP4_CONFIG)) +#define NM_IP4_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_IP4_CONFIG, NMIP4ConfigClass)) + +typedef struct { + GObject parent; +} NMIP4Config; + +typedef struct { + GObjectClass parent; +} NMIP4ConfigClass; + +#define NM_IP4_CONFIG_ADDRESS "address" +#define NM_IP4_CONFIG_GATEWAY "gateway" +#define NM_IP4_CONFIG_NETMASK "netmask" +#define NM_IP4_CONFIG_BROADCAST "broadcast" +#define NM_IP4_CONFIG_HOSTNAME "hostname" +#define NM_IP4_CONFIG_NAMESERVERS "nameservers" +#define NM_IP4_CONFIG_DOMAINS "domains" +#define NM_IP4_CONFIG_NIS_DOMAIN "nis-domain" +#define NM_IP4_CONFIG_NIS_SERVERS "nis-servers" + +GType nm_ip4_config_get_type (void); NMIP4Config * nm_ip4_config_new (void); NMIP4Config * nm_ip4_config_copy (NMIP4Config *config); -void nm_ip4_config_ref (NMIP4Config *config); -void nm_ip4_config_unref (NMIP4Config *config); gboolean nm_ip4_config_get_secondary (NMIP4Config *config); void nm_ip4_config_set_secondary (NMIP4Config *config, gboolean secondary); @@ -86,5 +110,4 @@ void nm_ip4_config_set_mss (NMIP4Config *config, guint32 mss); struct rtnl_addr * nm_ip4_config_to_rtnl_addr (NMIP4Config *config, guint32 flags); - -#endif +#endif /* NM_IP4_CONFIG_H */ |