diff options
author | Dmitri Pal <dpal@redhat.com> | 2009-07-02 12:52:32 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-07-02 20:02:27 -0400 |
commit | 767ce0e4fdc9dee525561314311a461e77883b9b (patch) | |
tree | 6cad162c0b5b956b0b82ed95ecd005ee0b263366 /collection/collection_stack.h | |
parent | 48bb3991b40a1a70b1d806ea99d9dcaeb900e380 (diff) | |
download | ding-libs-767ce0e4fdc9dee525561314311a461e77883b9b.tar.gz ding-libs-767ce0e4fdc9dee525561314311a461e77883b9b.tar.xz ding-libs-767ce0e4fdc9dee525561314311a461e77883b9b.zip |
Changing function names for collection API.
Patch prepends prefix "col_" to all
functions related to collection.
This caused some formatiing issues
so the alignement was addressed too.
Diffstat (limited to 'collection/collection_stack.h')
-rw-r--r-- | collection/collection_stack.h | 69 |
1 files changed, 39 insertions, 30 deletions
diff --git a/collection/collection_stack.h b/collection/collection_stack.h index 447b3df..ef52767 100644 --- a/collection/collection_stack.h +++ b/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 |