summaryrefslogtreecommitdiffstats
path: root/procd.h
diff options
context:
space:
mode:
Diffstat (limited to 'procd.h')
-rw-r--r--procd.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/procd.h b/procd.h
index 8b33143..4009afc 100644
--- a/procd.h
+++ b/procd.h
@@ -5,6 +5,8 @@
#include <libubus.h>
#include <stdio.h>
+#define __init __attribute__((constructor))
+
#define DPRINTF(fmt, ...) do { \
if (debug) \
fprintf(stderr, "DEBUG %s(%d): " fmt, __func__, __LINE__, ## __VA_ARGS__); \
@@ -13,6 +15,6 @@
extern int debug;
extern char *ubus_socket;
void procd_connect_ubus(void);
-void procd_register_objects(struct ubus_context *ctx);
+void procd_init_service(struct ubus_context *ctx);
#endif