BbQueue * bb_queue_reverse (BbQueue *queue) { BbQueue *reverse = bb_queue_new (); foreach_bbqueue_item (queue, void *item) { bb_queue_push (reverse, item); }
/* * Description : Allocate and initialize a new ProfilerFactory structure. * Return : bool, true on success, false otherwise */ bool ProfilerFactory_init (void) { if ((this = calloc (1, sizeof(ProfilerFactory))) == NULL) return false; this->profilersQueue = bb_queue_new (); this->profilersArray = NULL; return true; }