added options for virtual IP, UDP encapsulation, IPComp
[strongswan.git] / src / charon / plugins / nm / nm_service.h
1 /*
2 * Copyright (C) 2008 Martin Willi
3 * Hochschule fuer Technik Rapperswil
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 *
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 * for more details.
14 *
15 * $Id$
16 */
17
18 /**
19 * @defgroup nm_service nm_service
20 * @{ @ingroup nm
21 */
22
23 #ifndef NM_SERVICE_H_
24 #define NM_SERVICE_H_
25
26 #include <glib/gtypes.h>
27 #include <glib-object.h>
28 #include <nm-vpn-plugin.h>
29
30 #define NM_TYPE_STRONGSWAN_PLUGIN (nm_strongswan_plugin_get_type ())
31 #define NM_STRONGSWAN_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPlugin))
32 #define NM_STRONGSWAN_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPluginClass))
33 #define NM_IS_STRONGSWAN_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_STRONGSWAN_PLUGIN))
34 #define NM_IS_STRONGSWAN_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_STRONGSWAN_PLUGIN))
35 #define NM_STRONGSWAN_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPluginClass))
36
37 #define NM_DBUS_SERVICE_STRONGSWAN "org.freedesktop.NetworkManager.strongswan"
38 #define NM_DBUS_INTERFACE_STRONGSWAN "org.freedesktop.NetworkManager.strongswan"
39 #define NM_DBUS_PATH_STRONGSWAN "/org/freedesktop/NetworkManager/strongswan"
40
41 typedef struct {
42 NMVPNPlugin parent;
43 } NMStrongswanPlugin;
44
45 typedef struct {
46 NMVPNPluginClass parent;
47 } NMStrongswanPluginClass;
48
49 GType nm_strongswan_plugin_get_type(void);
50
51 NMStrongswanPlugin *nm_strongswan_plugin_new(void);
52
53 #endif /* NM_SERVICE_H_ */