summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2013-05-03 14:49:21 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2013-05-03 21:34:27 +0200
commitc1f86f02a149f46609273e1bd5b42696d544727a (patch)
tree1bcbeb23a564be3488cc119eaee1bf2cc0638190
parent8c664ca2d7b4faffa7b3dbeb3b9e491976c24eee (diff)
downloadlibsigrokdecode-c1f86f02a149f46609273e1bd5b42696d544727a.tar.gz
libsigrokdecode-c1f86f02a149f46609273e1bd5b42696d544727a.zip
Main header is <libsigrokdecode/libsigrokdecode.h> now.
This matches the convention used in libsigrok. Potential other headers might end up in libsigrokdecode/, but only libsigrokdecode.h is meant to be #included by frontends directly.
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac2
-rw-r--r--controller.c4
-rw-r--r--decoder.c4
-rw-r--r--exception.c4
-rw-r--r--libsigrokdecode-internal.h (renamed from sigrokdecode-internal.h)6
-rw-r--r--libsigrokdecode.h.in (renamed from sigrokdecode.h.in)2
-rw-r--r--log.c4
-rw-r--r--module_sigrokdecode.c4
-rw-r--r--type_decoder.c4
-rw-r--r--type_logic.c2
-rw-r--r--util.c4
-rw-r--r--version.c2
14 files changed, 25 insertions, 24 deletions
diff --git a/.gitignore b/.gitignore
index da30138..b812ba6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -17,7 +17,7 @@ map
missing
stamp-h1
autostuff/
-sigrokdecode.h
+libsigrokdecode.h
ChangeLog
INSTALL
diff --git a/Makefile.am b/Makefile.am
index e6f2ced..d3f91b8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,8 +31,9 @@ libsigrokdecode_la_CPPFLAGS = $(CPPFLAGS_PYTHON) \
-DDECODERS_DIR='"$(DECODERS_DIR)"'
libsigrokdecode_la_LDFLAGS = $(SRD_LIB_LDFLAGS) $(LDFLAGS_PYTHON)
-include_HEADERS = sigrokdecode.h
-noinst_HEADERS = sigrokdecode-internal.h
+library_includedir = $(includedir)/libsigrokdecode
+library_include_HEADERS = libsigrokdecode.h
+noinst_HEADERS = libsigrokdecode-internal.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libsigrokdecode.pc
diff --git a/configure.ac b/configure.ac
index 5431835..3ed527f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -148,7 +148,7 @@ AC_SUBST(SRD_PACKAGE_VERSION_MICRO)
AC_SUBST(SRD_PACKAGE_VERSION)
AC_CONFIG_FILES([Makefile
- sigrokdecode.h
+ libsigrokdecode.h
libsigrokdecode.pc
contrib/Makefile
decoders/Makefile
diff --git a/controller.c b/controller.c
index e023b71..c9825b9 100644
--- a/controller.c
+++ b/controller.c
@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
#include <glib.h>
#include <inttypes.h>
diff --git a/decoder.c b/decoder.c
index c8eb98f..21e24c4 100644
--- a/decoder.c
+++ b/decoder.c
@@ -19,8 +19,8 @@
*/
#include "config.h"
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include <glib.h>
/**
diff --git a/exception.c b/exception.c
index cd9d2b2..1ce66a8 100644
--- a/exception.c
+++ b/exception.c
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
#include <stdarg.h>
#include <glib.h>
diff --git a/sigrokdecode-internal.h b/libsigrokdecode-internal.h
index b969356..718f11e 100644
--- a/sigrokdecode-internal.h
+++ b/libsigrokdecode-internal.h
@@ -19,10 +19,10 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef LIBSIGROKDECODE_SIGROKDECODE_INTERNAL_H
-#define LIBSIGROKDECODE_SIGROKDECODE_INTERNAL_H
+#ifndef LIBSIGROKDECODE_LIBSIGROKDECODE_INTERNAL_H
+#define LIBSIGROKDECODE_LIBSIGROKDECODE_INTERNAL_H
-#include "sigrokdecode.h"
+#include "libsigrokdecode.h"
/*--- controller.c ----------------------------------------------------------*/
diff --git a/sigrokdecode.h.in b/libsigrokdecode.h.in
index 7aac0ba..877aeb1 100644
--- a/sigrokdecode.h.in
+++ b/libsigrokdecode.h.in
@@ -42,7 +42,7 @@ extern "C" {
* The correct way to get/use the libsigrokdecode API functions is:
*
* @code{.c}
- * #include <sigrokdecode.h>
+ * #include <libsigrokdecode/libsigrokdecode.h>
* @endcode
*/
diff --git a/log.c b/log.c
index 49a18eb..36dcd95 100644
--- a/log.c
+++ b/log.c
@@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include <stdarg.h>
#include <stdio.h>
diff --git a/module_sigrokdecode.c b/module_sigrokdecode.c
index 557ad1a..f88a6e9 100644
--- a/module_sigrokdecode.c
+++ b/module_sigrokdecode.c
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
/** @cond PRIVATE */
diff --git a/type_decoder.c b/type_decoder.c
index 1de3b0e..16675bc 100644
--- a/type_decoder.c
+++ b/type_decoder.c
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
#include <inttypes.h>
diff --git a/type_logic.c b/type_logic.c
index 6f266aa..9f2b392 100644
--- a/type_logic.c
+++ b/type_logic.c
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
#include "config.h"
#include <inttypes.h>
#include <string.h>
diff --git a/util.c b/util.c
index aec73fa..74d56c3 100644
--- a/util.c
+++ b/util.c
@@ -18,8 +18,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
-#include "sigrokdecode-internal.h"
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode-internal.h"
#include "config.h"
/**
diff --git a/version.c b/version.c
index 9449c2d..8fbbafa 100644
--- a/version.c
+++ b/version.c
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include "sigrokdecode.h"
+#include "libsigrokdecode.h"
/**
* @file