device: renew dhcp leases on awake for software devices
[NetworkManager.git] / libnm-glib / nm-dhcp6-config.h
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2 /*
3  * This library is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU Lesser General Public
5  * License as published by the Free Software Foundation; either
6  * version 2 of the License, or (at your option) any later version.
7  *
8  * This library is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11  * Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public
14  * License along with this library; if not, write to the
15  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  * Boston, MA 02110-1301 USA.
17  *
18  * Copyright 2008 - 2010 Red Hat, Inc.
19  * Copyright 2008 Novell, Inc.
20  */
21
22 #ifndef NM_DHCP6_CONFIG_H
23 #define NM_DHCP6_CONFIG_H
24
25 #include <glib.h>
26 #include <glib-object.h>
27 #include <dbus/dbus-glib.h>
28 #include "nm-object.h"
29
30 G_BEGIN_DECLS
31
32 #define NM_TYPE_DHCP6_CONFIG            (nm_dhcp6_config_get_type ())
33 #define NM_DHCP6_CONFIG(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_DHCP6_CONFIG, NMDHCP6Config))
34 #define NM_DHCP6_CONFIG_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_DHCP6_CONFIG, NMDHCP6ConfigClass))
35 #define NM_IS_DHCP6_CONFIG(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_DHCP6_CONFIG))
36 #define NM_IS_DHCP6_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_DHCP6_CONFIG))
37
38 typedef struct {
39         NMObject parent;
40 } NMDHCP6Config;
41
42 typedef struct {
43         NMObjectClass parent;
44
45         /* Padding for future expansion */
46         void (*_reserved1) (void);
47         void (*_reserved2) (void);
48         void (*_reserved3) (void);
49         void (*_reserved4) (void);
50         void (*_reserved5) (void);
51         void (*_reserved6) (void);
52 } NMDHCP6ConfigClass;
53
54 #define NM_DHCP6_CONFIG_OPTIONS "options"
55
56 GType nm_dhcp6_config_get_type (void);
57
58 GObject *nm_dhcp6_config_new (DBusGConnection *connection, const char *object_path);
59
60 GHashTable * nm_dhcp6_config_get_options (NMDHCP6Config *config);
61
62 const char * nm_dhcp6_config_get_one_option (NMDHCP6Config *config, const char *option);
63
64 G_END_DECLS
65
66 #endif /* NM_DHCP6_CONFIG_H */