8b331438b71272f3e8b116c1b77a6dae2dff4d03
[project/procd.git] / procd.h
1 #ifndef __PROCD_H
2 #define __PROCD_H
3
4 #include <libubox/uloop.h>
5 #include <libubus.h>
6 #include <stdio.h>
7
8 #define DPRINTF(fmt, ...) do { \
9         if (debug) \
10                 fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
11         } while (0)
12
13 extern int debug;
14 extern char *ubus_socket;
15 void procd_connect_ubus(void);
16 void procd_register_objects(struct ubus_context *ctx);
17
18 #endif