Moving charon to libcharon.
[strongswan.git] / src / libcharon / plugins / nm / gnome / properties / nm-strongswan.h
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 * Copyright (C) 2008 Dan Williams
5 *
6 * Based on NetworkManager's vpnc plugin
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 * for more details.
17 */
18
19 #ifndef _NM_STRONGSWAN_H_
20 #define _NM_STRONGSWAN_H_
21
22 #include <glib-object.h>
23
24 typedef enum
25 {
26 STRONGSWAN_PLUGIN_UI_ERROR_UNKNOWN = 0,
27 STRONGSWAN_PLUGIN_UI_ERROR_INVALID_PROPERTY,
28 STRONGSWAN_PLUGIN_UI_ERROR_MISSING_PROPERTY
29 } StrongswanPluginUiError;
30
31 #define STRONGSWAN_TYPE_PLUGIN_UI_ERROR (strongswan_plugin_ui_error_get_type ())
32 GType strongswan_plugin_ui_error_get_type (void);
33
34 #define STRONGSWAN_TYPE_PLUGIN_UI (strongswan_plugin_ui_get_type ())
35 #define STRONGSWAN_PLUGIN_UI(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STRONGSWAN_TYPE_PLUGIN_UI, StrongswanPluginUi))
36 #define STRONGSWAN_PLUGIN_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STRONGSWAN_TYPE_PLUGIN_UI, StrongswanPluginUiClass))
37 #define STRONGSWAN_IS_PLUGIN_UI(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STRONGSWAN_TYPE_PLUGIN_UI))
38 #define STRONGSWAN_IS_PLUGIN_UI_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), STRONGSWAN_TYPE_PLUGIN_UI))
39 #define STRONGSWAN_PLUGIN_UI_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STRONGSWAN_TYPE_PLUGIN_UI, StrongswanPluginUiClass))
40
41 typedef struct _StrongswanPluginUi StrongswanPluginUi;
42 typedef struct _StrongswanPluginUiClass StrongswanPluginUiClass;
43
44 struct _StrongswanPluginUi {
45 GObject parent;
46 };
47
48 struct _StrongswanPluginUiClass {
49 GObjectClass parent;
50 };
51
52 GType strongswan_plugin_ui_get_type (void);
53
54
55 #define STRONGSWAN_TYPE_PLUGIN_UI_WIDGET (strongswan_plugin_ui_widget_get_type ())
56 #define STRONGSWAN_PLUGIN_UI_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), STRONGSWAN_TYPE_PLUGIN_UI_WIDGET, StrongswanPluginUiWidget))
57 #define STRONGSWAN_PLUGIN_UI_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), STRONGSWAN_TYPE_PLUGIN_UI_WIDGET, StrongswanPluginUiWidgetClass))
58 #define STRONGSWAN_IS_PLUGIN_UI_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), STRONGSWAN_TYPE_PLUGIN_UI_WIDGET))
59 #define STRONGSWAN_IS_PLUGIN_UI_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), STRONGSWAN_TYPE_PLUGIN_UI_WIDGET))
60 #define STRONGSWAN_PLUGIN_UI_WIDGET_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), STRONGSWAN_TYPE_PLUGIN_UI_WIDGET, StrongswanPluginUiWidgetClass))
61
62 typedef struct _StrongswanPluginUiWidget StrongswanPluginUiWidget;
63 typedef struct _StrongswanPluginUiWidgetClass StrongswanPluginUiWidgetClass;
64
65 struct _StrongswanPluginUiWidget {
66 GObject parent;
67 };
68
69 struct _StrongswanPluginUiWidgetClass {
70 GObjectClass parent;
71 };
72
73 GType strongswan_plugin_ui_widget_get_type (void);
74
75 #endif /* _NM_STRONGSWAN_H_ */
76