Esempio n. 1
0
BbQueue *
bb_queue_reverse (BbQueue *queue)
{
	BbQueue *reverse = bb_queue_new ();

	foreach_bbqueue_item (queue, void *item) {
		bb_queue_push (reverse, item);
	}
Esempio n. 2
0
/*
 * 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;
}