aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-17 07:58:36 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-17 07:58:36 +0100
commit360fd8567545253f680ea544ce7313ab1ef43d14 (patch)
tree06fb409ddee9b370a4d0a76884b433e8e93f0de2 /log.h
parent60d5440dd3514e71b87948ff5ed30ee38445b8a5 (diff)
downloadble-toys-360fd8567545253f680ea544ce7313ab1ef43d14.tar.gz
ble-toys-360fd8567545253f680ea544ce7313ab1ef43d14.tar.bz2
ble-toys-360fd8567545253f680ea544ce7313ab1ef43d14.tar.xz
ble-toys-360fd8567545253f680ea544ce7313ab1ef43d14.zip
o Passing tests.
Diffstat (limited to 'log.h')
-rw-r--r--log.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/log.h b/log.h
new file mode 100644
index 0000000..dcfe83e
--- /dev/null
+++ b/log.h
@@ -0,0 +1,17 @@
+#ifndef LOG_H
+#define LOG_H
+
+#include <boost/log/core.hpp>
+#include <boost/log/trivial.hpp>
+#define D BOOST_LOG_TRIVIAL(debug)
+#define I BOOST_LOG_TRIVIAL(info)
+#define W BOOST_LOG_TRIVIAL(warning)
+
+#define DF BOOST_LOG_TRIVIAL(debug) << __FUNCTION__ << ": "
+#define IF BOOST_LOG_TRIVIAL(info) << __FUNCTION__ << ": "
+#define WF BOOST_LOG_TRIVIAL(warning) << __FUNCTION__ << ": "
+
+#define UUID_PRIMARY_SERVICE 0x2800
+#define UUID_SECONDARY_SERVICE 0x2801
+
+#endif