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; }
/** * 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; }