summaryrefslogtreecommitdiffstats
path: root/procd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-01 23:14:57 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-01 23:24:58 +0200
commite0d721487a618490a7db06f76904868a71684071 (patch)
tree6ef0e0d41577a4631033ac897ee8f27b3a34ccf1 /procd.h
parent843fe9bb5b77fd20153816400ce918989730f99d (diff)
downloadunitd-e0d721487a618490a7db06f76904868a71684071.tar
unitd-e0d721487a618490a7db06f76904868a71684071.zip
implement more parts of the service core api
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