device: renew dhcp leases on awake for software devices
[NetworkManager.git] / libnm-util / nm-setting-template.h
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2
3 /*
4  * Tambet Ingo <tambet@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the
18  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301 USA.
20  *
21  * (C) Copyright 2007 - 2008 Novell, Inc.
22  */
23
24 /* This file is just a template - it's not built nor included in the tarball.
25    It's sole purpose is to make the process of creating new settings easier.
26    Just replace 'template' with new setting name (preserving the case),
27    remove this comment, and you're almost done.
28 */
29
30 #ifndef NM_SETTING_TEMPLATE_H
31 #define NM_SETTING_TEMPLATE_H
32
33 #include <nm-setting.h>
34
35 G_BEGIN_DECLS
36
37 #define NM_TYPE_SETTING_TEMPLATE            (nm_setting_template_get_type ())
38 #define NM_SETTING_TEMPLATE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_SETTING_TEMPLATE, NMSettingTemplate))
39 #define NM_SETTING_TEMPLATE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_SETTING_TEMPLATE, NMSettingTemplateClass))
40 #define NM_IS_SETTING_TEMPLATE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_SETTING_TEMPLATE))
41 #define NM_IS_SETTING_TEMPLATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NM_TYPE_SETTING_TEMPLATE))
42 #define NM_SETTING_TEMPLATE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_SETTING_TEMPLATE, NMSettingTemplateClass))
43
44 #define NM_SETTING_TEMPLATE_SETTING_NAME "template"
45
46 typedef struct {
47         NMSetting parent;
48 } NMSettingTemplate;
49
50 typedef struct {
51         NMSettingClass parent;
52
53         /* Padding for future expansion */
54         void (*_reserved1) (void);
55         void (*_reserved2) (void);
56         void (*_reserved3) (void);
57         void (*_reserved4) (void);
58 } NMSettingTemplateClass;
59
60 GType nm_setting_template_get_type (void);
61
62 NMSetting *nm_setting_template_new (void);
63
64 G_END_DECLS
65
66 #endif /* NM_SETTING_TEMPLATE_H */