예제 #1
0
파일: reldep.c 프로젝트: Xake/hawkey
HyReldepList
reldeplist_from_queue(Pool *pool, Queue h)
{
    HyReldepList reldeplist = solv_calloc(1, sizeof(*reldeplist));
    reldeplist->pool = pool;
    queue_init_clone(&reldeplist->queue, &h);
    return reldeplist;
}
예제 #2
0
/**
 * hif_reldep_list_from_queue: (constructor)
 * @pool: Pool
 * @queue: Queue
 *
 * Returns: an #HifReldepList
 *
 * Since: 0.7.0
 */
HifReldepList *
hif_reldep_list_from_queue (Pool *pool, Queue queue)
{
    HifReldepList *reldep_list = g_object_new (HIF_TYPE_RELDEP_LIST, NULL);
    reldep_list->pool = pool;
    queue_init_clone (&reldep_list->queue, &queue);
    return reldep_list;
}