summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 19:09:25 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-03-18 19:09:25 +0100
commit33d1cf04a7e8d5b4cb7ed45af75eed06a27d1292 (patch)
treecca4f2719b7136eb8fb63eb6fc8e3fe9b65e5d61 /include
parent56ccdb40aba41facf5f2762f8b163222c7acdc88 (diff)
downloadgmrf-33d1cf04a7e8d5b4cb7ed45af75eed06a27d1292.tar
gmrf-33d1cf04a7e8d5b4cb7ed45af75eed06a27d1292.zip
Add log message support
Diffstat (limited to 'include')
-rw-r--r--include/gmrf/gmrf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gmrf/gmrf.h b/include/gmrf/gmrf.h
index bccf338..7f3cbde 100644
--- a/include/gmrf/gmrf.h
+++ b/include/gmrf/gmrf.h
@@ -31,6 +31,7 @@
#include <stddef.h>
#include <stdint.h>
#include <string.h>
+#include <syslog.h>
typedef struct gmrf gmrf_t;
@@ -52,6 +53,7 @@ static inline bool gmrf_addr_equal(const gmrf_addr_t *addr1, const gmrf_addr_t *
return (memcmp(addr1->d, addr2->d, GMRF_ADDR_LEN) == 0);
}
+void gmrf_logf(gmrf_t *gmrf, int priority, const char *format, ...);
gmrf_addr_t gmrf_iface_get_addr(gmrf_t *gmrf, gmrf_iface_t *iface);
size_t gmrf_iface_get_mtu(gmrf_t *gmrf, gmrf_iface_t *iface);