reimplemented dbus plugin for NetworkManager 0.7, renamed to nm
[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 #undef TRUE
30 #undef FALSE
31
32 #define NM_TYPE_STRONGSWAN_PLUGIN (nm_strongswan_plugin_get_type ())
33 #define NM_STRONGSWAN_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPlugin))
34 #define NM_STRONGSWAN_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPluginClass))
35 #define NM_IS_STRONGSWAN_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_STRONGSWAN_PLUGIN))
36 #define NM_IS_STRONGSWAN_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_STRONGSWAN_PLUGIN))
37 #define NM_STRONGSWAN_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_STRONGSWAN_PLUGIN, NMSTRONGSWANPluginClass))
38
39 #define NM_DBUS_SERVICE_STRONGSWAN "org.freedesktop.NetworkManager.strongswan"
40 #define NM_DBUS_INTERFACE_STRONGSWAN "org.freedesktop.NetworkManager.strongswan"
41 #define NM_DBUS_PATH_STRONGSWAN "/org/freedesktop/NetworkManager/strongswan"
42
43 typedef struct {
44 NMVPNPlugin parent;
45 } NMStrongswanPlugin;
46
47 typedef struct {
48 NMVPNPluginClass parent;
49 } NMStrongswanPluginClass;
50
51 GType nm_strongswan_plugin_get_type(void);
52
53 NMStrongswanPlugin *nm_strongswan_plugin_new(void);
54
55 #endif /* NM_SERVICE_H_ */