22 #ifndef COLLECTION_STACK_H
23 #define COLLECTION_STACK_H
25 #include <collection.h>
37 #define COL_CLASS_STACK 30000
39 #define COL_NAME_STACK "stack"
123 const char *property,
147 const char *property,
170 const char *property,
193 const char *property,
216 const char *property,
239 const char *property,
262 const char *property,
263 unsigned char logical);
289 const char *property,
int col_push_item(struct collection_item *stack, struct collection_item *item)
Push item into the stack.
Definition: collection_stack.c:300
int col_push_binary_property(struct collection_item *stack, const char *property, void *binary_data, int length)
Push binary value to the stack.
Definition: collection_stack.c:79
int col_push_int_property(struct collection_item *stack, const char *property, int32_t number)
Push integer value to the stack.
Definition: collection_stack.c:108
int col_push_double_property(struct collection_item *stack, const char *property, double number)
Push floating point value to the stack.
Definition: collection_stack.c:217
void col_destroy_stack(struct collection_item *stack)
Destroy stack.
Definition: collection_stack.c:42
int col_push_bool_property(struct collection_item *stack, const char *property, unsigned char logical)
Push Boolean value to the stack.
Definition: collection_stack.c:244
int col_pop_item(struct collection_item *stack, struct collection_item **item)
Pop item from the stack.
Definition: collection_stack.c:331
int col_push_str_property(struct collection_item *stack, const char *property, const char *string, int length)
Push string to the stack.
Definition: collection_stack.c:53
int col_create_stack(struct collection_item **stack)
Create stack.
Definition: collection_stack.c:29
int col_push_ulong_property(struct collection_item *stack, const char *property, uint64_t number)
Push unsigned long value to the stack.
Definition: collection_stack.c:190
int col_push_unsigned_property(struct collection_item *stack, const char *property, uint32_t number)
Push unsigned value to the stack.
Definition: collection_stack.c:135
Opaque structure that holds one property.
int col_push_any_property(struct collection_item *stack, const char *property, int type, void *data, int length)
Push value of any type to the stack.
Definition: collection_stack.c:271
int col_push_long_property(struct collection_item *stack, const char *property, int64_t number)
Push long integer value to the stack.
Definition: collection_stack.c:163