summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-01-07 16:47:13 +0100
committerMarcel Holtmann <marcel@holtmann.org>2009-01-07 16:47:13 +0100
commit0fc28e0291fd0d878a6605c7f62fcc7debfdbebe (patch)
tree0b3f043e016087d0a14cd0671aa48950e71d8066 /include
parentfb423121afa4655615a496941c807323f16c9b9a (diff)
downloadconnman-0fc28e0291fd0d878a6605c7f62fcc7debfdbebe.tar.gz
connman-0fc28e0291fd0d878a6605c7f62fcc7debfdbebe.tar.bz2
connman-0fc28e0291fd0d878a6605c7f62fcc7debfdbebe.zip
Add support for CONNMAN_VERSION declaration
Diffstat (limited to 'include')
-rw-r--r--include/Makefile.am12
-rw-r--r--include/plugin.h2
-rw-r--r--include/version.h.in35
3 files changed, 47 insertions, 2 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 84eece9e..2db02499 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -4,12 +4,20 @@ includedir = @includedir@/connman
include_HEADERS = types.h log.h plugin.h security.h resolver.h \
storage.h device.h network.h
+nodist_include_HEADERS = version.h
+
noinst_HEADERS = driver.h element.h property.h ipv4.h rtnl.h dbus.h
MAINTAINERCLEANFILES = Makefile.in
all-local:
- @if [ ! -e connman ] ; then $(LN_S) $(top_srcdir)/include connman ; fi
+ @if [ ! -e connman ]; then \
+ mkdir connman; \
+ list='$(include_HEADERS) $(noinst_HEADERS)'; for i in $$list; \
+ do cp $(top_srcdir)/include/$$i connman/; done; \
+ list='$(nodist_include_HEADERS)'; for i in $$list; \
+ do cp $(top_builddir)/include/$$i connman/; done; \
+ fi
clean-local:
- @rm -f connman
+ @rm -rf connman
diff --git a/include/plugin.h b/include/plugin.h
index 11a06095..d538dc7e 100644
--- a/include/plugin.h
+++ b/include/plugin.h
@@ -22,6 +22,8 @@
#ifndef __CONNMAN_PLUGIN_H
#define __CONNMAN_PLUGIN_H
+#include <connman/version.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/include/version.h.in b/include/version.h.in
new file mode 100644
index 00000000..c163f8ae
--- /dev/null
+++ b/include/version.h.in
@@ -0,0 +1,35 @@
+/*
+ *
+ * Connection Manager
+ *
+ * Copyright (C) 2007-2009 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_VERSION_H
+#define __CONNMAN_VERSION_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define CONNMAN_VERSION @VERSION@
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __CONNMAN_VERSION_H */