22 #ifndef COLLECTION_QUEUE_H 23 #define COLLECTION_QUEUE_H 25 #include "collection.h" 37 #define COL_CLASS_QUEUE 40000 39 #define COL_NAME_QUEUE "queue" 122 const char *property,
146 const char *property,
169 const char *property,
192 const char *property,
215 const char *property,
238 const char *property,
261 const char *property,
262 unsigned char logical);
288 const char *property,
int col_create_queue(struct collection_item **queue)
Create queue.
Definition: collection_queue.c:29
int col_enqueue_any_property(struct collection_item *queue, const char *property, int type, void *data, int length)
Add value of any type to the queue.
Definition: collection_queue.c:273
int col_enqueue_unsigned_property(struct collection_item *queue, const char *property, uint32_t number)
Add unsigned value to the queue.
Definition: collection_queue.c:137
int col_enqueue_ulong_property(struct collection_item *queue, const char *property, uint64_t number)
Add unsigned long value to the queue.
Definition: collection_queue.c:192
int col_enqueue_double_property(struct collection_item *queue, const char *property, double number)
Add floating point value to the queue.
Definition: collection_queue.c:219
int col_dequeue_item(struct collection_item *queue, struct collection_item **item)
Get item from the queue.
Definition: collection_queue.c:333
int col_enqueue_str_property(struct collection_item *queue, const char *property, const char *string, int length)
Add string to the queue.
Definition: collection_queue.c:53
int col_enqueue_binary_property(struct collection_item *queue, const char *property, void *binary_data, int length)
Add binary value to the queue.
Definition: collection_queue.c:81
Opaque structure that holds one property.
int col_enqueue_long_property(struct collection_item *queue, const char *property, int64_t number)
Add long integer value to the queue.
Definition: collection_queue.c:165
void col_destroy_queue(struct collection_item *queue)
Destroy queue.
Definition: collection_queue.c:42
int col_enqueue_int_property(struct collection_item *queue, const char *property, int32_t number)
Add integer value to the queue.
Definition: collection_queue.c:110
int col_enqueue_item(struct collection_item *queue, struct collection_item *item)
Push item into the queue.
Definition: collection_queue.c:302
int col_enqueue_bool_property(struct collection_item *queue, const char *property, unsigned char logical)
Add Boolean value to the queue.
Definition: collection_queue.c:246