Export the D-Bus service and interface constants
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Jun 2008 08:01:10 +0000 (10:01 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 28 Jun 2008 08:01:10 +0000 (10:01 +0200)
include/Makefile.am
include/dbus.h [new file with mode: 0644]
src/connman.h
src/iface-inet.c

index 4c10f17..15af374 100644 (file)
@@ -1,7 +1,9 @@
 
 includedir = @includedir@/connman
 
-noinst_HEADERS = log.h plugin.h iface.h rtnl.h dhcp.h resolver.h
+include_HEADERS = log.h plugin.h dbus.h
+
+noinst_HEADERS = iface.h rtnl.h dhcp.h resolver.h
 
 MAINTAINERCLEANFILES = Makefile.in
 
diff --git a/include/dbus.h b/include/dbus.h
new file mode 100644 (file)
index 0000000..21efdf5
--- /dev/null
@@ -0,0 +1,49 @@
+/*
+ *
+ *  Connection Manager
+ *
+ *  Copyright (C) 2007-2008  Intel Corporation. All rights reserved.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License version 2 as
+ *  published by the Free Software Foundation.
+ *
+ *  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 St, Fifth Floor, Boston, MA  02110-1301  USA
+ *
+ */
+
+#ifndef __CONNMAN_DBUS_H
+#define __CONNMAN_DBUS_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <dbus/dbus.h>
+
+#define CONNMAN_SERVICE  "org.freedesktop.connman"
+
+#define CONNMAN_ERROR_INTERFACE  CONNMAN_SERVICE ".Error"
+
+#define CONNMAN_AGENT_INTERFACE  CONNMAN_SERVICE ".Agent"
+
+#define CONNMAN_MANAGER_PATH       "/"
+#define CONNMAN_MANAGER_INTERFACE  CONNMAN_SERVICE ".Manager"
+
+#define CONNMAN_IFACE_BASEPATH  "/interface"
+#define CONNMAN_IFACE_INTERFACE  CONNMAN_SERVICE ".Interface"
+
+#define CONNMAN_NETWORK_INTERFACE  CONNMAN_SERVICE ".Network"
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_DBUS_H */
index 866f9c9..e04ddf5 100644 (file)
  *
  */
 
-#include <stdio.h>
-
 #include <glib.h>
 
-#include <dbus/dbus.h>
-
-#define CONNMAN_SERVICE  "org.freedesktop.connman"
-
-#define CONNMAN_ERROR_INTERFACE  CONNMAN_SERVICE ".Error"
-
-#define CONNMAN_AGENT_INTERFACE  CONNMAN_SERVICE ".Agent"
-
-#define CONNMAN_MANAGER_PATH       "/"
-#define CONNMAN_MANAGER_INTERFACE  CONNMAN_SERVICE ".Manager"
-
-#define CONNMAN_IFACE_BASEPATH  "/interface"
-#define CONNMAN_IFACE_INTERFACE  CONNMAN_SERVICE ".Interface"
-
-#define CONNMAN_NETWORK_INTERFACE  CONNMAN_SERVICE ".Network"
+#include <connman/dbus.h>
 
 #define NM_SERVICE    "org.freedesktop.NetworkManager"
 #define NM_PATH       "/org/freedesktop/NetworkManager"
index 82a1e8c..cd21c13 100644 (file)
@@ -23,6 +23,7 @@
 #include <config.h>
 #endif
 
+#include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
 #include <string.h>