summaryrefslogtreecommitdiffstats
path: root/procd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-01 09:50:29 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-01 09:50:29 +0200
commitca808f5c335a873c87359ce024e1a14ebae706b9 (patch)
treebf6ca050eedf2b3f71d8698d370786174bf17cca /procd.h
downloadunitd-ca808f5c335a873c87359ce024e1a14ebae706b9.tar
unitd-ca808f5c335a873c87359ce024e1a14ebae706b9.zip
initial import: starts and connects to ubus
Diffstat (limited to 'procd.h')
-rw-r--r--procd.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/procd.h b/procd.h
new file mode 100644
index 0000000..cc063b3
--- /dev/null
+++ b/procd.h
@@ -0,0 +1,16 @@
+#ifndef __PROCD_H
+#define __PROCD_H
+
+#include <libubox/uloop.h>
+#include <stdio.h>
+
+#define DPRINTF(fmt, ...) do { \
+ if (debug) \
+ fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
+ } while (0)
+
+extern int debug;
+extern char *ubus_socket;
+void procd_connect_ubus(void);
+
+#endif