summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-30 06:01:45 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-30 06:01:45 +0100
commit8e65bc5177df5ac686c04986ed60d54a98f11fb2 (patch)
tree8b020f4e945c765715067b693bcfcc3cc7f1a033
parentfd24c47b801a63ff9a16384adcf3c73f8e3a77d8 (diff)
downloadconnman-8e65bc5177df5ac686c04986ed60d54a98f11fb2.tar.gz
connman-8e65bc5177df5ac686c04986ed60d54a98f11fb2.tar.bz2
connman-8e65bc5177df5ac686c04986ed60d54a98f11fb2.zip
Add CONNMAN_API_SUBJECT_TO_CHANGE definition
-rw-r--r--include/plugin.h5
-rw-r--r--plugins/bluetooth.c1
-rw-r--r--plugins/dhclient.c1
-rw-r--r--plugins/dnsproxy.c1
-rw-r--r--plugins/ethernet.c1
-rw-r--r--plugins/ipv4.c1
-rw-r--r--plugins/loopback.c1
-rw-r--r--plugins/netdev.c1
-rw-r--r--plugins/polkit.c1
-rw-r--r--plugins/resolvconf.c1
-rw-r--r--plugins/resolvfile.c1
-rw-r--r--plugins/supplicant.c1
-rw-r--r--plugins/udhcp.c1
-rw-r--r--plugins/wifi.c1
-rw-r--r--src/connman.h2
-rw-r--r--src/detect.c4
16 files changed, 20 insertions, 4 deletions
diff --git a/include/plugin.h b/include/plugin.h
index 941229d1..cbd1c12a 100644
--- a/include/plugin.h
+++ b/include/plugin.h
@@ -26,6 +26,11 @@
extern "C" {
#endif
+#ifndef CONNMAN_API_SUBJECT_TO_CHANGE
+#error "Please define CONNMAN_API_SUBJECT_TO_CHANGE to acknowledge your \
+understanding that ConnMan hasn't reached a stable API."
+#endif
+
/**
* SECTION:plugin
* @title: Plugin premitives
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 8993ca66..1799f770 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -28,6 +28,7 @@
#include <gdbus.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/device.h>
#include <connman/dbus.h>
diff --git a/plugins/dhclient.c b/plugins/dhclient.c
index 04787d19..20de09ac 100644
--- a/plugins/dhclient.c
+++ b/plugins/dhclient.c
@@ -27,6 +27,7 @@
#include <sys/wait.h>
#include <glib/gstdio.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/driver.h>
#include <connman/dbus.h>
diff --git a/plugins/dnsproxy.c b/plugins/dnsproxy.c
index 39eefec8..e8df6bff 100644
--- a/plugins/dnsproxy.c
+++ b/plugins/dnsproxy.c
@@ -29,6 +29,7 @@
#include <arpa/inet.h>
#include <netinet/in.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/resolver.h>
#include <connman/log.h>
diff --git a/plugins/ethernet.c b/plugins/ethernet.c
index 7b5ca41a..434e3b77 100644
--- a/plugins/ethernet.c
+++ b/plugins/ethernet.c
@@ -34,6 +34,7 @@
#include <glib.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/device.h>
#include <connman/rtnl.h>
diff --git a/plugins/ipv4.c b/plugins/ipv4.c
index b7d79be8..33c73a42 100644
--- a/plugins/ipv4.c
+++ b/plugins/ipv4.c
@@ -35,6 +35,7 @@
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/driver.h>
#include <connman/resolver.h>
diff --git a/plugins/loopback.c b/plugins/loopback.c
index 29e6547e..7dc47fe7 100644
--- a/plugins/loopback.c
+++ b/plugins/loopback.c
@@ -31,6 +31,7 @@
#include <arpa/inet.h>
#include <net/if.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/log.h>
diff --git a/plugins/netdev.c b/plugins/netdev.c
index b32c12f0..24993019 100644
--- a/plugins/netdev.c
+++ b/plugins/netdev.c
@@ -23,6 +23,7 @@
#include <config.h>
#endif
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/driver.h>
#include <connman/log.h>
diff --git a/plugins/polkit.c b/plugins/polkit.c
index 1bf3f900..5396ad2f 100644
--- a/plugins/polkit.c
+++ b/plugins/polkit.c
@@ -28,6 +28,7 @@
#include <glib.h>
#include <polkit-dbus/polkit-dbus.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/security.h>
#include <connman/dbus.h>
diff --git a/plugins/resolvconf.c b/plugins/resolvconf.c
index 7dc12052..30002d5c 100644
--- a/plugins/resolvconf.c
+++ b/plugins/resolvconf.c
@@ -27,6 +27,7 @@
#include <unistd.h>
#include <stdlib.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/resolver.h>
#include <connman/log.h>
diff --git a/plugins/resolvfile.c b/plugins/resolvfile.c
index 440656af..a9009814 100644
--- a/plugins/resolvfile.c
+++ b/plugins/resolvfile.c
@@ -30,6 +30,7 @@
#include <string.h>
#include <sys/stat.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/resolver.h>
#include <connman/log.h>
diff --git a/plugins/supplicant.c b/plugins/supplicant.c
index d9075344..c51be358 100644
--- a/plugins/supplicant.c
+++ b/plugins/supplicant.c
@@ -29,6 +29,7 @@
#include <glib.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/log.h>
#include <connman/dbus.h>
diff --git a/plugins/udhcp.c b/plugins/udhcp.c
index 9ac8c89a..2cc3c61f 100644
--- a/plugins/udhcp.c
+++ b/plugins/udhcp.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <unistd.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/driver.h>
#include <connman/dbus.h>
diff --git a/plugins/wifi.c b/plugins/wifi.c
index ca39cecd..10541f28 100644
--- a/plugins/wifi.c
+++ b/plugins/wifi.c
@@ -33,6 +33,7 @@
#include <gdbus.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
#include <connman/plugin.h>
#include <connman/driver.h>
#include <connman/rtnl.h>
diff --git a/src/connman.h b/src/connman.h
index 45cb1914..948fe771 100644
--- a/src/connman.h
+++ b/src/connman.h
@@ -21,6 +21,8 @@
#include <glib.h>
+#define CONNMAN_API_SUBJECT_TO_CHANGE
+
#include <connman/dbus.h>
#define NM_SERVICE "org.freedesktop.NetworkManager"
diff --git a/src/detect.c b/src/detect.c
index 9ede7dbb..e97e9df8 100644
--- a/src/detect.c
+++ b/src/detect.c
@@ -37,10 +37,6 @@
#include <glib.h>
-#include <connman/device.h>
-#include <connman/rtnl.h>
-#include <connman/log.h>
-
#include "connman.h"
static GSList *device_list = NULL;