int virDomainControllerInsert(virDomainDefPtr def,
                              virDomainControllerDefPtr controller)
{
    if (VIR_REALLOC_N(def->controllers, def->ncontrollers+1) < 0)
        return -1;

    virDomainControllerInsertPreAlloced(def, controller);

    return 0;
}
int virDomainControllerInsert(virDomainDefPtr def,
                              virDomainControllerDefPtr controller)
{
    if (VIR_REALLOC_N(def->controllers, def->ncontrollers+1) < 0)
        return -1;

    virDomainControllerInsertPreAlloced(def, controller);

    return 0;
}