1 /* Type definitions for the Data Store Server. */
4 #include <minix/sys_config.h>
6 #include <minix/bitmap.h>
9 /* Constants for the Data Store Server. */
10 #define NR_DS_KEYS 64 /* reserve space for so many items */
11 #define NR_DS_SUBS (4*_NR_SYS_PROCS) /* .. and so many subscriptions */
16 int ds_flags
; /* flags for this store, includes type info */
17 char ds_key
[DS_MAX_KEYLEN
]; /* key to lookup information */
19 u32_t ds_val_u32
; /* u32 data (DS_TYPE_U32) */
20 char ds_val_str
[DS_MAX_VALLEN
]; /* string data (DS_TYPE_STR) */
23 /* out of date subscribers. */
24 bitchunk_t ds_old_subs
[BITMAP_CHUNKS(NR_DS_SUBS
)];
28 int sub_flags
; /* flags for this subscription */
29 regex_t sub_regex
; /* regular expression agains keys */
30 endpoint_t sub_owner
; /* who is subscribed */