diff options
Diffstat (limited to 'logger.h')
-rw-r--r-- | logger.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -100,6 +100,9 @@ struct logentry_item_store { /* end intermediary structures */ +/* WARNING: cuddled items aren't compatible with warm restart. more code + * necessary to ensure log streams are all flushed/processed before stopping + */ typedef struct _logentry { enum log_entry_subtype event; uint8_t pad; @@ -108,7 +111,6 @@ typedef struct _logentry { struct timeval tv; /* not monotonic! */ int size; union { - void *entry; /* probably an item */ char end; } data[]; } logentry; @@ -165,6 +167,7 @@ extern pthread_key_t logger_key; /* public functions */ void logger_init(void); +void logger_stop(void); logger *logger_create(void); #define LOGGER_LOG(l, flag, type, ...) \ @@ -186,4 +189,8 @@ enum logger_add_watcher_ret { enum logger_add_watcher_ret logger_add_watcher(void *c, const int sfd, uint16_t f); +/* functions used by restart system */ +uint64_t logger_get_gid(void); +void logger_set_gid(uint64_t gid); + #endif |