From e0d721487a618490a7db06f76904868a71684071 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 1 Jun 2012 23:14:57 +0200 Subject: implement more parts of the service core api --- procd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'procd.h') diff --git a/procd.h b/procd.h index 8b33143..4009afc 100644 --- a/procd.h +++ b/procd.h @@ -5,6 +5,8 @@ #include #include +#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 -- cgit v1.2.3