X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Futils_llist.h;h=5bb684a4657fc2dfb2552bb7ec4dcb3557deadea;hp=59bf2e4170e033f1cecc575f7bbc9afe086fff6f;hb=936c450a86c841eea89888c8550c9118fae90c25;hpb=77ad300d75ce59bf4d49d839a2af72e90590033c diff --git a/src/daemon/utils_llist.h b/src/daemon/utils_llist.h index 59bf2e41..5bb684a4 100644 --- a/src/daemon/utils_llist.h +++ b/src/daemon/utils_llist.h @@ -30,11 +30,10 @@ /* * Data types */ -struct llentry_s -{ - char *key; - void *value; - struct llentry_s *next; +struct llentry_s { + char *key; + void *value; + struct llentry_s *next; }; typedef struct llentry_s llentry_t; @@ -44,23 +43,23 @@ typedef struct llist_s llist_t; /* * Functions */ -llist_t *llist_create (void); -void llist_destroy (llist_t *l); +llist_t *llist_create(void); +void llist_destroy(llist_t *l); -llentry_t *llentry_create (char *key, void *value); -void llentry_destroy (llentry_t *e); +llentry_t *llentry_create(char *key, void *value); +void llentry_destroy(llentry_t *e); -void llist_append (llist_t *l, llentry_t *e); -void llist_prepend (llist_t *l, llentry_t *e); -void llist_remove (llist_t *l, llentry_t *e); +void llist_append(llist_t *l, llentry_t *e); +void llist_prepend(llist_t *l, llentry_t *e); +void llist_remove(llist_t *l, llentry_t *e); -int llist_size (llist_t *l); +int llist_size(llist_t *l); -llentry_t *llist_search (llist_t *l, const char *key); -llentry_t *llist_search_custom (llist_t *l, - int (*compare) (llentry_t *, void *), void *user_data); +llentry_t *llist_search(llist_t *l, const char *key); +llentry_t *llist_search_custom(llist_t *l, int (*compare)(llentry_t *, void *), + void *user_data); -llentry_t *llist_head (llist_t *l); -llentry_t *llist_tail (llist_t *l); +llentry_t *llist_head(llist_t *l); +llentry_t *llist_tail(llist_t *l); #endif /* UTILS_LLIST_H */