aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Schink <swo-dev@marcschink.de>2017-10-03 12:16:32 +0200
committerMarc Schink <swo-dev@marcschink.de>2017-10-03 13:52:52 +0200
commitf38a57b5a0b630c6a52ae509ebe3f871724aee67 (patch)
tree3693fc80fb8feed8428d5c06483121f476a166fd
parentad61ac54ac52eeebfac0b81873cd8cb5a80057df (diff)
C++: Use '.hpp' instead of '.h' for header files
-rw-r--r--bindings/cxx/Makefile.am2
-rw-r--r--bindings/cxx/addressoffset.cpp2
-rw-r--r--bindings/cxx/context.cpp2
-rw-r--r--bindings/cxx/datavalue.cpp2
-rw-r--r--bindings/cxx/error.cpp2
-rw-r--r--bindings/cxx/eventcounter.cpp2
-rw-r--r--bindings/cxx/exceptiontrace.cpp2
-rw-r--r--bindings/cxx/extension.cpp2
-rw-r--r--bindings/cxx/globaltimestamp1.cpp2
-rw-r--r--bindings/cxx/globaltimestamp2.cpp2
-rw-r--r--bindings/cxx/hardware.cpp2
-rw-r--r--bindings/cxx/include/libswocxx/libswocxx.hpp (renamed from bindings/cxx/include/libswocxx/libswocxx.h)6
-rw-r--r--bindings/cxx/instrumentation.cpp2
-rw-r--r--bindings/cxx/localtimestamp.cpp2
-rw-r--r--bindings/cxx/overflow.cpp2
-rw-r--r--bindings/cxx/packet.cpp2
-rw-r--r--bindings/cxx/payloadpacket.cpp2
-rw-r--r--bindings/cxx/pcsample.cpp2
-rw-r--r--bindings/cxx/pcvalue.cpp2
-rw-r--r--bindings/cxx/sourcepacket.cpp2
-rw-r--r--bindings/cxx/synchronization.cpp2
-rw-r--r--bindings/cxx/unknown.cpp2
-rw-r--r--bindings/cxx/version.cpp2
-rw-r--r--bindings/python/Context.h2
-rw-r--r--bindings/python/swopy.i4
-rw-r--r--examples/decoder.cpp2
26 files changed, 29 insertions, 29 deletions
diff --git a/bindings/cxx/Makefile.am b/bindings/cxx/Makefile.am
index 8014a4a..1fd1e87 100644
--- a/bindings/cxx/Makefile.am
+++ b/bindings/cxx/Makefile.am
@@ -48,4 +48,4 @@ libswocxx_la_LDFLAGS = $(LIBSWO_LDFLAGS) -no-undefined
libswocxx_la_LIBADD = $(top_builddir)/libswo/libswo.la
library_includedir = $(includedir)/libswocxx
-library_include_HEADERS = include/libswocxx/libswocxx.h
+library_include_HEADERS = include/libswocxx/libswocxx.hpp
diff --git a/bindings/cxx/addressoffset.cpp b/bindings/cxx/addressoffset.cpp
index 7e6474b..9077c5b 100644
--- a/bindings/cxx/addressoffset.cpp
+++ b/bindings/cxx/addressoffset.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/context.cpp b/bindings/cxx/context.cpp
index 357c821..010df57 100644
--- a/bindings/cxx/context.cpp
+++ b/bindings/cxx/context.cpp
@@ -23,7 +23,7 @@
#include <string>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/datavalue.cpp b/bindings/cxx/datavalue.cpp
index 5196321..0cf8bdc 100644
--- a/bindings/cxx/datavalue.cpp
+++ b/bindings/cxx/datavalue.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/error.cpp b/bindings/cxx/error.cpp
index f7cf344..798c3e3 100644
--- a/bindings/cxx/error.cpp
+++ b/bindings/cxx/error.cpp
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/eventcounter.cpp b/bindings/cxx/eventcounter.cpp
index eb25e29..5663e00 100644
--- a/bindings/cxx/eventcounter.cpp
+++ b/bindings/cxx/eventcounter.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/exceptiontrace.cpp b/bindings/cxx/exceptiontrace.cpp
index dcb0104..b5b85d5 100644
--- a/bindings/cxx/exceptiontrace.cpp
+++ b/bindings/cxx/exceptiontrace.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/extension.cpp b/bindings/cxx/extension.cpp
index b8123d7..8ab8b4a 100644
--- a/bindings/cxx/extension.cpp
+++ b/bindings/cxx/extension.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/globaltimestamp1.cpp b/bindings/cxx/globaltimestamp1.cpp
index 32e0204..b23b286 100644
--- a/bindings/cxx/globaltimestamp1.cpp
+++ b/bindings/cxx/globaltimestamp1.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/globaltimestamp2.cpp b/bindings/cxx/globaltimestamp2.cpp
index da95577..9e23baf 100644
--- a/bindings/cxx/globaltimestamp2.cpp
+++ b/bindings/cxx/globaltimestamp2.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/hardware.cpp b/bindings/cxx/hardware.cpp
index 3eca462..748b7d4 100644
--- a/bindings/cxx/hardware.cpp
+++ b/bindings/cxx/hardware.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/include/libswocxx/libswocxx.h b/bindings/cxx/include/libswocxx/libswocxx.hpp
index 7574325..d842671 100644
--- a/bindings/cxx/include/libswocxx/libswocxx.h
+++ b/bindings/cxx/include/libswocxx/libswocxx.hpp
@@ -17,8 +17,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef LIBSWOCXX_H
-#define LIBSWOCXX_H
+#ifndef LIBSWOCXX_HPP
+#define LIBSWOCXX_HPP
#include <stdint.h>
#include <string>
@@ -371,4 +371,4 @@ inline DecoderFlags operator|(DecoderFlags lhs, DecoderFlags rhs)
}
-#endif /* LIBSWOCXX_H */
+#endif /* LIBSWOCXX_HPP */
diff --git a/bindings/cxx/instrumentation.cpp b/bindings/cxx/instrumentation.cpp
index b391e50..f4783c0 100644
--- a/bindings/cxx/instrumentation.cpp
+++ b/bindings/cxx/instrumentation.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/localtimestamp.cpp b/bindings/cxx/localtimestamp.cpp
index 3d52cf6..a2554d8 100644
--- a/bindings/cxx/localtimestamp.cpp
+++ b/bindings/cxx/localtimestamp.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/overflow.cpp b/bindings/cxx/overflow.cpp
index 0b2b514..5225a87 100644
--- a/bindings/cxx/overflow.cpp
+++ b/bindings/cxx/overflow.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/packet.cpp b/bindings/cxx/packet.cpp
index 814377c..b92f6d9 100644
--- a/bindings/cxx/packet.cpp
+++ b/bindings/cxx/packet.cpp
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/payloadpacket.cpp b/bindings/cxx/payloadpacket.cpp
index 7f3c68a..a570e6b 100644
--- a/bindings/cxx/payloadpacket.cpp
+++ b/bindings/cxx/payloadpacket.cpp
@@ -19,7 +19,7 @@
#include <vector>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/pcsample.cpp b/bindings/cxx/pcsample.cpp
index e21cfaf..173c7b9 100644
--- a/bindings/cxx/pcsample.cpp
+++ b/bindings/cxx/pcsample.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/pcvalue.cpp b/bindings/cxx/pcvalue.cpp
index 6f5cfd2..35035df 100644
--- a/bindings/cxx/pcvalue.cpp
+++ b/bindings/cxx/pcvalue.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/sourcepacket.cpp b/bindings/cxx/sourcepacket.cpp
index 734f163..4fbf384 100644
--- a/bindings/cxx/sourcepacket.cpp
+++ b/bindings/cxx/sourcepacket.cpp
@@ -19,7 +19,7 @@
#include <vector>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/synchronization.cpp b/bindings/cxx/synchronization.cpp
index d1bca37..8a02119 100644
--- a/bindings/cxx/synchronization.cpp
+++ b/bindings/cxx/synchronization.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/unknown.cpp b/bindings/cxx/unknown.cpp
index fd997e7..780a531 100644
--- a/bindings/cxx/unknown.cpp
+++ b/bindings/cxx/unknown.cpp
@@ -19,7 +19,7 @@
#include <sstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/cxx/version.cpp b/bindings/cxx/version.cpp
index 08f5c8f..9e04e94 100644
--- a/bindings/cxx/version.cpp
+++ b/bindings/cxx/version.cpp
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
namespace libswo
{
diff --git a/bindings/python/Context.h b/bindings/python/Context.h
index 0714e9c..820bb7d 100644
--- a/bindings/python/Context.h
+++ b/bindings/python/Context.h
@@ -20,7 +20,7 @@
#ifndef LIBSWO_BINDINGS_PYTHON_CONTEXT_H
#define LIBSWO_BINDINGS_PYTHON_CONTEXT_H
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
class Context : public libswo::Context
{
diff --git a/bindings/python/swopy.i b/bindings/python/swopy.i
index caf302a..9df39e4 100644
--- a/bindings/python/swopy.i
+++ b/bindings/python/swopy.i
@@ -20,7 +20,7 @@
%module swopy
%{
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
%}
%include "stdint.i"
@@ -328,5 +328,5 @@ void Context::set_callback(PyObject *callback)
#define LIBSWO_API
#define LIBSWO_PRIV
-%include <libswocxx/libswocxx.h>
+%include <libswocxx/libswocxx.hpp>
%include "Context.h"
diff --git a/examples/decoder.cpp b/examples/decoder.cpp
index 17220a5..1d29389 100644
--- a/examples/decoder.cpp
+++ b/examples/decoder.cpp
@@ -22,7 +22,7 @@
#include <iostream>
#include <fstream>
-#include <libswocxx/libswocxx.h>
+#include <libswocxx/libswocxx.hpp>
#define BUFFER_SIZE 1024