projects
/
project
/
procd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add debug
[project/procd.git]
/
procd.h
diff --git
a/procd.h
b/procd.h
index
cc063b3
..
4009afc
100644
(file)
--- a/
procd.h
+++ b/
procd.h
@@
-2,8
+2,11
@@
#define __PROCD_H
#include <libubox/uloop.h>
#define __PROCD_H
#include <libubox/uloop.h>
+#include <libubus.h>
#include <stdio.h>
#include <stdio.h>
+#define __init __attribute__((constructor))
+
#define DPRINTF(fmt, ...) do { \
if (debug) \
fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
#define DPRINTF(fmt, ...) do { \
if (debug) \
fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
@@
-12,5
+15,6
@@
extern int debug;
extern char *ubus_socket;
void procd_connect_ubus(void);
extern int debug;
extern char *ubus_socket;
void procd_connect_ubus(void);
+void procd_init_service(struct ubus_context *ctx);
#endif
#endif