summaryrefslogtreecommitdiffstats
path: root/common/collection/collection_queue.h
diff options
context:
space:
mode:
authorDmitri Pal <dpal@redhat.com>2009-07-02 12:52:32 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-07-02 20:02:27 -0400
commit09c4b073ca0bdf8d208cbcc7e84a7d33629213d2 (patch)
treeeec88a1aeac5ac25f1e9e9cf77c90093c7c8c125 /common/collection/collection_queue.h
parentbe22e71411a8dd25b452f4ebdd91d840b503d394 (diff)
downloadsssd-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_queue.h')
-rw-r--r--common/collection/collection_queue.h68
1 files changed, 39 insertions, 29 deletions
diff --git a/common/collection/collection_queue.h b/common/collection/collection_queue.h
index 113fcbfb6..24bdd65eb 100644
--- a/common/collection/collection_queue.h
+++ b/common/collection/collection_queue.h
@@ -29,53 +29,63 @@
#define COL_NAME_QUEUE "queue"
/* Function that creates a queue object */
-int create_queue(struct collection_item **queue);
+int col_create_queue(struct collection_item **queue);
/* Function that destroys a queue object */
-void destroy_queue(struct collection_item *queue);
+void col_destroy_queue(struct collection_item *queue);
/* Family of functions that add property to a queue */
/* Put a string property to queue. */
-int enqueue_str_property(struct collection_item *queue,
- const char *property, char *string, int length);
+int col_enqueue_str_property(struct collection_item *queue,
+ const char *property,
+ char *string,
+ int length);
/* Put a binary property to queue. */
-int enqueue_binary_property(struct collection_item *queue,
- const char *property, void *binary_data, int length);
+int col_enqueue_binary_property(struct collection_item *queue,
+ const char *property,
+ void *binary_data,
+ int length);
/* Put an int property to queue. */
-int enqueue_int_property(struct collection_item *queue,
- const char *property, int number);
+int col_enqueue_int_property(struct collection_item *queue,
+ const char *property,
+ int number);
/* Put an unsigned int property to queue. */
-int enqueue_unsigned_property(struct collection_item *queue,
- const char *property, unsigned int number);
+int col_enqueue_unsigned_property(struct collection_item *queue,
+ const char *property,
+ unsigned int number);
/* Put a long property. */
-int enqueue_long_property(struct collection_item *queue,
- const char *property, long number);
+int col_enqueue_long_property(struct collection_item *queue,
+ const char *property,
+ long number);
/* Put an unsigned long property. */
-int enqueue_ulong_property(struct collection_item *queue,
- const char *property, unsigned long number);
+int col_enqueue_ulong_property(struct collection_item *queue,
+ const char *property,
+ unsigned long number);
/* Put a double property. */
-int enqueue_double_property(struct collection_item *queue,
- const char *property, double number);
+int col_enqueue_double_property(struct collection_item *queue,
+ const char *property,
+ double number);
/* Put a bool property. */
-int enqueue_bool_property(struct collection_item *queue,
- const char *property, unsigned char logical);
+int col_enqueue_bool_property(struct collection_item *queue,
+ const char *property,
+ unsigned char logical);
/* Put any property */
-int enqueue_any_property(struct collection_item *queue, /* Queue */
- 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_enqueue_any_property(struct collection_item *queue, /* Queue */
+ 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 enqueue_item(struct collection_item *queue,
- struct collection_item *item);
+int col_enqueue_item(struct collection_item *queue,
+ struct collection_item *item);
/* Get item from queue */
-int dequeue_item(struct collection_item *queue,
- struct collection_item **item);
+int col_dequeue_item(struct collection_item *queue,
+ struct collection_item **item);
#endif