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:
Peter Krempa 2022-01-11 10:09:12 +01:00
parent 5835ad64d1
commit 6e9fa631ef
1 changed files with 68 additions and 41 deletions

View File

@ -50,23 +50,32 @@ struct _virDomainMomentObj {
virDomainMomentObj *first_child; /* NULL if no children */ virDomainMomentObj *first_child; /* NULL if no children */
}; };
int virDomainMomentForEachChild(virDomainMomentObj *moment, int
virDomainMomentForEachChild(virDomainMomentObj *moment,
virHashIterator iter, virHashIterator iter,
void *data); void *data);
int virDomainMomentForEachDescendant(virDomainMomentObj *moment, int
virDomainMomentForEachDescendant(virDomainMomentObj *moment,
virHashIterator iter, virHashIterator iter,
void *data); void *data);
void virDomainMomentDropParent(virDomainMomentObj *moment); void
void virDomainMomentDropChildren(virDomainMomentObj *moment); virDomainMomentDropParent(virDomainMomentObj *moment);
void virDomainMomentMoveChildren(virDomainMomentObj *from, void
virDomainMomentDropChildren(virDomainMomentObj *moment);
void
virDomainMomentMoveChildren(virDomainMomentObj *from,
virDomainMomentObj *to); virDomainMomentObj *to);
void virDomainMomentLinkParent(virDomainMomentObjList *moments, void
virDomainMomentLinkParent(virDomainMomentObjList *moments,
virDomainMomentObj *moment); virDomainMomentObj *moment);
virDomainMomentObjList *virDomainMomentObjListNew(void); virDomainMomentObjList *
void virDomainMomentObjListFree(virDomainMomentObjList *moments); virDomainMomentObjListNew(void);
void
virDomainMomentObjListFree(virDomainMomentObjList *moments);
virDomainMomentObj *virDomainMomentAssignDef(virDomainMomentObjList *moments, virDomainMomentObj *
virDomainMomentAssignDef(virDomainMomentObjList *moments,
virDomainMomentDef *def); 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
@ -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
virDomainMomentObjListGetNames(virDomainMomentObjList *moments,
virDomainMomentObj *from, virDomainMomentObj *from,
char **const names, char **const names,
int maxnames, int maxnames,
unsigned int moment_flags, unsigned int moment_flags,
virDomainMomentObjListFilter filter, virDomainMomentObjListFilter filter,
unsigned int filter_flags); unsigned int filter_flags);
virDomainMomentObj *virDomainMomentFindByName(virDomainMomentObjList *moments, virDomainMomentObj *
virDomainMomentFindByName(virDomainMomentObjList *moments,
const char *name); const char *name);
int virDomainMomentObjListSize(virDomainMomentObjList *moments); int
virDomainMomentObj *virDomainMomentGetCurrent(virDomainMomentObjList *moments); virDomainMomentObjListSize(virDomainMomentObjList *moments);
const char *virDomainMomentGetCurrentName(virDomainMomentObjList *moments);
void virDomainMomentSetCurrent(virDomainMomentObjList *moments, virDomainMomentObj *
virDomainMomentGetCurrent(virDomainMomentObjList *moments);
const char *
virDomainMomentGetCurrentName(virDomainMomentObjList *moments);
void
virDomainMomentSetCurrent(virDomainMomentObjList *moments,
virDomainMomentObj *moment); virDomainMomentObj *moment);
bool virDomainMomentObjListRemove(virDomainMomentObjList *moments,
bool
virDomainMomentObjListRemove(virDomainMomentObjList *moments,
virDomainMomentObj *moment); virDomainMomentObj *moment);
void virDomainMomentObjListRemoveAll(virDomainMomentObjList *moments); void
int virDomainMomentForEach(virDomainMomentObjList *moments, virDomainMomentObjListRemoveAll(virDomainMomentObjList *moments);
int
virDomainMomentForEach(virDomainMomentObjList *moments,
virHashIterator iter, virHashIterator iter,
void *data); void *data);
int virDomainMomentUpdateRelations(virDomainMomentObjList *moments);
int virDomainMomentCheckCycles(virDomainMomentObjList *list, int
virDomainMomentUpdateRelations(virDomainMomentObjList *moments);
int
virDomainMomentCheckCycles(virDomainMomentObjList *list,
virDomainMomentDef *def, virDomainMomentDef *def,
const char *domname); const char *domname);
virDomainMomentObj *virDomainMomentFindLeaf(virDomainMomentObjList *list);
virDomainMomentObj *
virDomainMomentFindLeaf(virDomainMomentObjList *list);