X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=procd.h;h=4009afc6e6753bb5a29025a2ef10f9b5076d44d7;hp=8b331438b71272f3e8b116c1b77a6dae2dff4d03;hb=14447cd46a3c6ad3f5b08e921b39a694b4ad14b0;hpb=843fe9bb5b77fd20153816400ce918989730f99d 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