diff options
author | Dan Winship <danw@redhat.com> | 2014-11-25 19:23:45 -0500 |
---|---|---|
committer | Dan Winship <danw@redhat.com> | 2015-03-25 12:51:36 -0400 |
commit | 11fe8c16a2fbbcbce304ef023454206e053d8ae3 (patch) | |
tree | 93804c80d9cc5829d0312241ad5f344ef8a34b36 /src | |
parent | c53b571dbaae1644d0e5f585046694aadd868d13 (diff) |
Split out nm-iodine-service-defines.h
Split nm-iodine-service-defines.h out of nm-iodine-service.h, so that
the -defines.h file has no dependency on either libnm or libnm-glib.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 4 | ||||
-rw-r--r-- | src/nm-iodine-service-defines.h | 33 | ||||
-rw-r--r-- | src/nm-iodine-service.h | 11 |
3 files changed, 37 insertions, 11 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index d8a8f3f..8ca103a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,8 +15,8 @@ libexec_PROGRAMS = \ nm_iodine_service_SOURCES = \ nm-iodine-service.c \ - nm-iodine-service.h - + nm-iodine-service.h \ + nm-iodine-service-defines.h nm_iodine_service_LDADD = \ $(NM_LIBS) diff --git a/src/nm-iodine-service-defines.h b/src/nm-iodine-service-defines.h new file mode 100644 index 0000000..2663cbf --- /dev/null +++ b/src/nm-iodine-service-defines.h @@ -0,0 +1,33 @@ +/* -*- Mode: C; tab-width: 5; indent-tabs-mode: t; c-basic-offset: 5 -*- */ +/* NetworkManager -- Network link manager + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Copyright © 2012 Guido Günther <agx@sigxcpu.org> + */ + +#ifndef NM_IODINE_SERVICE_DEFINES_H +#define NM_IODINE_SERVICE_DEFINES_H + +#define NM_DBUS_SERVICE_IODINE "org.freedesktop.NetworkManager.iodine" +#define NM_DBUS_INTERFACE_IODINE "org.freedesktop.NetworkManager.iodine" +#define NM_DBUS_PATH_IODINE "/org/freedesktop/NetworkManager/iodine" + +#define NM_IODINE_KEY_TOPDOMAIN "topdomain" +#define NM_IODINE_KEY_NAMESERVER "nameserver" +#define NM_IODINE_KEY_FRAGSIZE "fragsize" +#define NM_IODINE_KEY_PASSWORD "password" + +#endif /* NM_IODINE_SERVICE_DEFINES_H */ diff --git a/src/nm-iodine-service.h b/src/nm-iodine-service.h index 4c12a11..4efb37f 100644 --- a/src/nm-iodine-service.h +++ b/src/nm-iodine-service.h @@ -24,6 +24,8 @@ #include <glib.h> #include <nm-vpn-plugin.h> +#include "nm-iodine-service-defines.h" + #define NM_TYPE_IODINE_PLUGIN (nm_iodine_plugin_get_type ()) #define NM_IODINE_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_IODINE_PLUGIN, NMIodinePlugin)) #define NM_IODINE_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NM_TYPE_IODINE_PLUGIN, NMIodinePluginClass)) @@ -31,15 +33,6 @@ #define NM_IS_IODINE_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NM_TYPE_IODINE_PLUGIN)) #define NM_IODINE_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), NM_TYPE_IODINE_PLUGIN, NMIodinePluginClass)) -#define NM_DBUS_SERVICE_IODINE "org.freedesktop.NetworkManager.iodine" -#define NM_DBUS_INTERFACE_IODINE "org.freedesktop.NetworkManager.iodine" -#define NM_DBUS_PATH_IODINE "/org/freedesktop/NetworkManager/iodine" - -#define NM_IODINE_KEY_TOPDOMAIN "topdomain" -#define NM_IODINE_KEY_NAMESERVER "nameserver" -#define NM_IODINE_KEY_FRAGSIZE "fragsize" -#define NM_IODINE_KEY_PASSWORD "password" - typedef struct { NMVPNPlugin parent; } NMIodinePlugin; |