summaryrefslogtreecommitdiffstats
path: root/common/collection/collection_stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/collection/collection_stack.h')
-rw-r--r--common/collection/collection_stack.h69
1 files changed, 39 insertions, 30 deletions
diff --git a/common/collection/collection_stack.h b/common/collection/collection_stack.h
index 447b3df50..ef52767f4 100644
--- a/common/collection/collection_stack.h
+++ b/common/collection/collection_stack.h
@@ -29,53 +29,62 @@
#define COL_NAME_STACK "stack"
/* Function that creates a stack object */
-int create_stack(struct collection_item **stack);
+int col_create_stack(struct collection_item **stack);
/* Function that destroys a stack object */
-void destroy_stack(struct collection_item *stack);
+void col_destroy_stack(struct collection_item *stack);
/* Family of functions that push property to stack */
/* Push a string property to stack. */
-int push_str_property(struct collection_item *stack,
- const char *property, char *string, int length);
+int col_push_str_property(struct collection_item *stack,
+ const char *property,
+ char *string,
+ int length);
/* Push a binary property to stack. */
-int push_binary_property(struct collection_item *stack,
- const char *property, void *binary_data, int length);
+int col_push_binary_property(struct collection_item *stack,
+ const char *property,
+ void *binary_data,
+ int length);
/* Push an int property to stack. */
-int push_int_property(struct collection_item *stack,
- const char *property, int number);
+int col_push_int_property(struct collection_item *stack,
+ const char *property,
+ int number);
/* Push an unsigned int property to stack. */
-int push_unsigned_property(struct collection_item *stack,
- const char *property, unsigned int number);
+int col_push_unsigned_property(struct collection_item *stack,
+ const char *property,
+ unsigned int number);
/* Push a long property. */
-int push_long_property(struct collection_item *stack,
- const char *property, long number);
+int col_push_long_property(struct collection_item *stack,
+ const char *property,
+ long number);
/* Push an unsigned long property. */
-int push_ulong_property(struct collection_item *stack,
- const char *property, unsigned long number);
+int col_push_ulong_property(struct collection_item *stack,
+ const char *property,
+ unsigned long number);
/* Push a double property. */
-int push_double_property(struct collection_item *stack,
- const char *property, double number);
+int col_push_double_property(struct collection_item *stack,
+ const char *property,
+ double number);
/* Push a bool property. */
-int push_bool_property(struct collection_item *stack,
- const char *property, unsigned char logical);
+int col_push_bool_property(struct collection_item *stack,
+ const char *property,
+ unsigned char logical);
/* Push any property */
-int push_any_property(struct collection_item *stack, /* Stack */
- const char *property, /* Name */
- int type, /* Data type */
- void *data, /* Pointer to the data */
- int length); /* Length of the data. For
- strings it includes the
- trailing 0 */
+int col_push_any_property(struct collection_item *stack, /* Stack */
+ const char *property, /* Name */
+ int type, /* Data type */
+ void *data, /* Pointer to the data */
+ int length); /* Length of the data. For
+ * strings it includes the
+ * trailing 0 */
/* Push item */
-int push_item(struct collection_item *stack,
- struct collection_item *item);
+int col_push_item(struct collection_item *stack,
+ struct collection_item *item);
/* Pop item */
-int pop_item(struct collection_item *stack,
- struct collection_item **item);
-
+int col_pop_item(struct collection_item *stack,
+ struct collection_item **item);
#endif