21 lines
340 B
C
21 lines
340 B
C
|
/*
|
||
|
* Copyright 2016 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <gui/queue.h>
|
||
|
|
||
|
void *gui_queue_alloc(struct queue *queue)
|
||
|
{
|
||
|
struct gui_queue *gq = g_malloc(sizeof(struct gui_queue));
|
||
|
|
||
|
gq->gq_queue = queue;
|
||
|
return gq;
|
||
|
}
|
||
|
|
||
|
void gui_queue_free(struct queue *queue)
|
||
|
{
|
||
|
struct gui_queue *gq = gui_queue(queue);
|
||
|
|
||
|
queue->q_private = NULL;
|
||
|
g_free(gq);
|
||
|
}
|