diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-01 23:14:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-01 23:24:58 +0200 |
commit | e0d721487a618490a7db06f76904868a71684071 (patch) | |
tree | 6ef0e0d41577a4631033ac897ee8f27b3a34ccf1 /procd.h | |
parent | 843fe9bb5b77fd20153816400ce918989730f99d (diff) | |
download | unitd-e0d721487a618490a7db06f76904868a71684071.tar unitd-e0d721487a618490a7db06f76904868a71684071.zip |
implement more parts of the service core api
Diffstat (limited to 'procd.h')
-rw-r--r-- | procd.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |