1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
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.
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.
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.
18 * Copyright 2007 - 2008 Novell, Inc.
19 * Copyright 2008 - 2014 Red Hat, Inc.
22 #ifndef NM_IP6_CONFIG_H
23 #define NM_IP6_CONFIG_H
26 #include <glib-object.h>
27 #include <dbus/dbus-glib.h>
28 #include "nm-object.h"
32 #define NM_TYPE_IP6_CONFIG (nm_ip6_config_get_type ())
33 #define NM_IP6_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_IP6_CONFIG, NMIP6Config))
34 #define NM_IP6_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_IP6_CONFIG, NMIP6ConfigClass))
35 #define NM_IS_IP6_CONFIG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_IP6_CONFIG))
36 #define NM_IS_IP6_CONFIG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_IP6_CONFIG))
37 #define NM_IP6_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_IP6_CONFIG, NMIP6ConfigClass))
46 /* Padding for future expansion */
47 void (*_reserved1) (void);
48 void (*_reserved2) (void);
49 void (*_reserved3) (void);
50 void (*_reserved4) (void);
51 void (*_reserved5) (void);
52 void (*_reserved6) (void);
55 #define NM_IP6_CONFIG_GATEWAY "gateway"
56 #define NM_IP6_CONFIG_ADDRESSES "addresses"
57 #define NM_IP6_CONFIG_ROUTES "routes"
58 #define NM_IP6_CONFIG_NAMESERVERS "nameservers"
59 #define NM_IP6_CONFIG_DOMAINS "domains"
60 #define NM_IP6_CONFIG_SEARCHES "searches"
62 GType nm_ip6_config_get_type (void);
64 GObject *nm_ip6_config_new (DBusGConnection *connection, const char *object_path);
66 NM_AVAILABLE_IN_0_9_10
67 const char * nm_ip6_config_get_gateway (NMIP6Config *config);
68 const GSList * nm_ip6_config_get_addresses (NMIP6Config *config);
69 const GSList * nm_ip6_config_get_routes (NMIP6Config *config);
70 NM_AVAILABLE_IN_0_9_10
71 guint32 nm_ip6_config_get_num_nameservers (NMIP6Config *config);
72 NM_AVAILABLE_IN_0_9_10
73 const struct in6_addr *nm_ip6_config_get_nameserver (NMIP6Config *config, guint32 idx);
74 const GSList * nm_ip6_config_get_nameservers (NMIP6Config *config);
75 const GPtrArray * nm_ip6_config_get_domains (NMIP6Config *config);
76 NM_AVAILABLE_IN_0_9_10
77 const GPtrArray * nm_ip6_config_get_searches (NMIP6Config *config);
81 #endif /* NM_IP6_CONFIG_H */