This reverts commit
92840eb3a7e47cdf761e52afccc41d2a35327fbd.
More recent reviews/changes don't have the vir*ObjNew APIs
consuming the @def, so remove from Interface as well. Changes
needed to also deal with conflicts from commit id '
46f5eca4'.
Signed-off-by: John Ferlan <jferlan@redhat.com>
static virInterfaceObjPtr
-virInterfaceObjNew(virInterfaceDefPtr def)
+virInterfaceObjNew(void)
{
virInterfaceObjPtr obj;
return NULL;
virObjectLock(obj);
- obj->def = def;
return obj;
}
return obj;
}
- if (!(obj = virInterfaceObjNew(def)))
+ if (!(obj = virInterfaceObjNew()))
return NULL;
if (VIR_APPEND_ELEMENT_COPY(interfaces->objs,
interfaces->count, obj) < 0) {
- obj->def = NULL;
virInterfaceObjEndAPI(&obj);
return NULL;
}
+ obj->def = def;
return virObjectRef(obj);
}