mirror of https://gitee.com/openkylin/libvirt.git
virdomainmomentobjlist.h: Convert to modern header style
Format the function prototypes the same way as in the .c file. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
5835ad64d1
commit
6e9fa631ef
|
@ -50,24 +50,33 @@ struct _virDomainMomentObj {
|
||||||
virDomainMomentObj *first_child; /* NULL if no children */
|
virDomainMomentObj *first_child; /* NULL if no children */
|
||||||
};
|
};
|
||||||
|
|
||||||
int virDomainMomentForEachChild(virDomainMomentObj *moment,
|
int
|
||||||
virHashIterator iter,
|
virDomainMomentForEachChild(virDomainMomentObj *moment,
|
||||||
void *data);
|
virHashIterator iter,
|
||||||
int virDomainMomentForEachDescendant(virDomainMomentObj *moment,
|
void *data);
|
||||||
virHashIterator iter,
|
int
|
||||||
void *data);
|
virDomainMomentForEachDescendant(virDomainMomentObj *moment,
|
||||||
void virDomainMomentDropParent(virDomainMomentObj *moment);
|
virHashIterator iter,
|
||||||
void virDomainMomentDropChildren(virDomainMomentObj *moment);
|
void *data);
|
||||||
void virDomainMomentMoveChildren(virDomainMomentObj *from,
|
void
|
||||||
virDomainMomentObj *to);
|
virDomainMomentDropParent(virDomainMomentObj *moment);
|
||||||
void virDomainMomentLinkParent(virDomainMomentObjList *moments,
|
void
|
||||||
virDomainMomentObj *moment);
|
virDomainMomentDropChildren(virDomainMomentObj *moment);
|
||||||
|
void
|
||||||
|
virDomainMomentMoveChildren(virDomainMomentObj *from,
|
||||||
|
virDomainMomentObj *to);
|
||||||
|
void
|
||||||
|
virDomainMomentLinkParent(virDomainMomentObjList *moments,
|
||||||
|
virDomainMomentObj *moment);
|
||||||
|
|
||||||
virDomainMomentObjList *virDomainMomentObjListNew(void);
|
virDomainMomentObjList *
|
||||||
void virDomainMomentObjListFree(virDomainMomentObjList *moments);
|
virDomainMomentObjListNew(void);
|
||||||
|
void
|
||||||
|
virDomainMomentObjListFree(virDomainMomentObjList *moments);
|
||||||
|
|
||||||
virDomainMomentObj *virDomainMomentAssignDef(virDomainMomentObjList *moments,
|
virDomainMomentObj *
|
||||||
virDomainMomentDef *def);
|
virDomainMomentAssignDef(virDomainMomentObjList *moments,
|
||||||
|
virDomainMomentDef *def);
|
||||||
|
|
||||||
/* Various enum bits that map to public API filters. Note that the
|
/* Various enum bits that map to public API filters. Note that the
|
||||||
* values of the internal bits are not the same as the public ones for
|
* values of the internal bits are not the same as the public ones for
|
||||||
|
@ -97,28 +106,46 @@ typedef enum {
|
||||||
VIR_DOMAIN_MOMENT_FILTERS_METADATA | \
|
VIR_DOMAIN_MOMENT_FILTERS_METADATA | \
|
||||||
VIR_DOMAIN_MOMENT_FILTERS_LEAVES)
|
VIR_DOMAIN_MOMENT_FILTERS_LEAVES)
|
||||||
|
|
||||||
int virDomainMomentObjListGetNames(virDomainMomentObjList *moments,
|
int
|
||||||
virDomainMomentObj *from,
|
virDomainMomentObjListGetNames(virDomainMomentObjList *moments,
|
||||||
char **const names,
|
virDomainMomentObj *from,
|
||||||
int maxnames,
|
char **const names,
|
||||||
unsigned int moment_flags,
|
int maxnames,
|
||||||
virDomainMomentObjListFilter filter,
|
unsigned int moment_flags,
|
||||||
unsigned int filter_flags);
|
virDomainMomentObjListFilter filter,
|
||||||
virDomainMomentObj *virDomainMomentFindByName(virDomainMomentObjList *moments,
|
unsigned int filter_flags);
|
||||||
const char *name);
|
virDomainMomentObj *
|
||||||
int virDomainMomentObjListSize(virDomainMomentObjList *moments);
|
virDomainMomentFindByName(virDomainMomentObjList *moments,
|
||||||
virDomainMomentObj *virDomainMomentGetCurrent(virDomainMomentObjList *moments);
|
const char *name);
|
||||||
const char *virDomainMomentGetCurrentName(virDomainMomentObjList *moments);
|
int
|
||||||
void virDomainMomentSetCurrent(virDomainMomentObjList *moments,
|
virDomainMomentObjListSize(virDomainMomentObjList *moments);
|
||||||
virDomainMomentObj *moment);
|
|
||||||
bool virDomainMomentObjListRemove(virDomainMomentObjList *moments,
|
virDomainMomentObj *
|
||||||
virDomainMomentObj *moment);
|
virDomainMomentGetCurrent(virDomainMomentObjList *moments);
|
||||||
void virDomainMomentObjListRemoveAll(virDomainMomentObjList *moments);
|
const char *
|
||||||
int virDomainMomentForEach(virDomainMomentObjList *moments,
|
virDomainMomentGetCurrentName(virDomainMomentObjList *moments);
|
||||||
virHashIterator iter,
|
void
|
||||||
void *data);
|
virDomainMomentSetCurrent(virDomainMomentObjList *moments,
|
||||||
int virDomainMomentUpdateRelations(virDomainMomentObjList *moments);
|
virDomainMomentObj *moment);
|
||||||
int virDomainMomentCheckCycles(virDomainMomentObjList *list,
|
|
||||||
virDomainMomentDef *def,
|
bool
|
||||||
const char *domname);
|
virDomainMomentObjListRemove(virDomainMomentObjList *moments,
|
||||||
virDomainMomentObj *virDomainMomentFindLeaf(virDomainMomentObjList *list);
|
virDomainMomentObj *moment);
|
||||||
|
void
|
||||||
|
virDomainMomentObjListRemoveAll(virDomainMomentObjList *moments);
|
||||||
|
|
||||||
|
int
|
||||||
|
virDomainMomentForEach(virDomainMomentObjList *moments,
|
||||||
|
virHashIterator iter,
|
||||||
|
void *data);
|
||||||
|
|
||||||
|
int
|
||||||
|
virDomainMomentUpdateRelations(virDomainMomentObjList *moments);
|
||||||
|
|
||||||
|
int
|
||||||
|
virDomainMomentCheckCycles(virDomainMomentObjList *list,
|
||||||
|
virDomainMomentDef *def,
|
||||||
|
const char *domname);
|
||||||
|
|
||||||
|
virDomainMomentObj *
|
||||||
|
virDomainMomentFindLeaf(virDomainMomentObjList *list);
|
||||||
|
|
Loading…
Reference in New Issue