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 | 09c4b073ca0bdf8d208cbcc7e84a7d33629213d2 (patch) | |
tree | eec88a1aeac5ac25f1e9e9cf77c90093c7c8c125 /common/collection/collection_stack.h | |
parent | be22e71411a8dd25b452f4ebdd91d840b503d394 (diff) | |
download | sssd-09c4b073ca0bdf8d208cbcc7e84a7d33629213d2.tar.gz sssd-09c4b073ca0bdf8d208cbcc7e84a7d33629213d2.tar.xz sssd-09c4b073ca0bdf8d208cbcc7e84a7d33629213d2.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 'common/collection/collection_stack.h')
-rw-r--r-- | common/collection/collection_stack.h | 69 |
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 |