diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-18 21:00:44 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-18 21:00:44 +0100 |
commit | 224ea7b0815187d2a638808e8a50fb29fda832f6 (patch) | |
tree | aabc417ce70e0d83258b8b51439e8f2ccc4b8ffe /src/queue.h | |
parent | 766a0c145dad84b9af35b2bebc032be71509b3df (diff) | |
download | fastd-224ea7b0815187d2a638808e8a50fb29fda832f6.tar fastd-224ea7b0815187d2a638808e8a50fb29fda832f6.zip |
Convert type names to _t convention
Diffstat (limited to 'src/queue.h')
-rw-r--r-- | src/queue.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/queue.h b/src/queue.h index 8e93e0e..6e1a727 100644 --- a/src/queue.h +++ b/src/queue.h @@ -34,22 +34,22 @@ #include <time.h> -typedef struct _fastd_queue_entry fastd_queue_entry; +typedef struct fastd_queue_entry fastd_queue_entry_t; -struct _fastd_queue_entry { - fastd_queue_entry *next; +struct fastd_queue_entry { + fastd_queue_entry_t *next; struct timespec timeout; }; -typedef struct _fastd_queue { - fastd_queue_entry *head; -} fastd_queue; +typedef struct fastd_queue { + fastd_queue_entry_t *head; +} fastd_queue_t; -void fastd_queue_put(fastd_context *ctx, fastd_queue *queue, fastd_queue_entry *entry, int timeout); -fastd_queue_entry* fastd_queue_get(fastd_context *ctx, fastd_queue *queue); -int fastd_queue_timeout(fastd_context *ctx, fastd_queue *queue); -void fastd_queue_filter(fastd_context *ctx, fastd_queue *queue, bool (*pred)(fastd_queue_entry*, void*), void *extra); -bool fastd_queue_has_entry(fastd_context *ctx, fastd_queue *queue, bool (*pred)(fastd_queue_entry*, void*), void *extra); +void fastd_queue_put(fastd_context_t *ctx, fastd_queue_t *queue, fastd_queue_entry_t *entry, int timeout); +fastd_queue_entry_t* fastd_queue_get(fastd_context_t *ctx, fastd_queue_t *queue); +int fastd_queue_timeout(fastd_context_t *ctx, fastd_queue_t *queue); +void fastd_queue_filter(fastd_context_t *ctx, fastd_queue_t *queue, bool (*pred)(fastd_queue_entry_t*, void*), void *extra); +bool fastd_queue_has_entry(fastd_context_t *ctx, fastd_queue_t *queue, bool (*pred)(fastd_queue_entry_t*, void*), void *extra); -#endif /* _FASTD_QUEUE_H_ */ +#endif /* _FASTD_QUEUE_T_H_ */ |