libubus: keep objects in an avl tree
[project/ubus.git] / ubus_common.h
1 #ifndef __UBUS_COMMON_H
2 #define __UBUS_COMMON_H
3
4 #define UBUS_UNIX_SOCKET "./ubus.sock"
5
6 #define UBUS_SIGNATURE_METHOD   (BLOBMSG_TYPE_LAST + 1)
7 #define UBUS_SIGNATURE_END              (BLOBMSG_TYPE_LAST + 2)
8
9 #ifndef ARRAY_SIZE
10 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
11 #endif
12
13 #define __init __attribute__((constructor))
14
15 #endif