mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 12:35:17 +00:00
virtypedparam.h: Consistently use contemporary header style
The header uses both styles randomly, switch it to the contemporary style. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
6813a46db5
commit
2e18d84746
@ -55,11 +55,14 @@ struct _virTypedParameterRemote {
|
||||
};
|
||||
|
||||
|
||||
int virTypedParamsValidate(virTypedParameterPtr params, int nparams,
|
||||
int
|
||||
virTypedParamsValidate(virTypedParameterPtr params,
|
||||
int nparams,
|
||||
/* const char *name, int type ... */ ...)
|
||||
G_GNUC_NULL_TERMINATED G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
bool virTypedParamsCheck(virTypedParameterPtr params,
|
||||
bool
|
||||
virTypedParamsCheck(virTypedParameterPtr params,
|
||||
int nparams,
|
||||
const char **names,
|
||||
int nnames);
|
||||
@ -77,31 +80,39 @@ virTypedParamsFilter(virTypedParameterPtr params,
|
||||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
|
||||
int virTypedParameterAssign(virTypedParameterPtr param, const char *name,
|
||||
int
|
||||
virTypedParameterAssign(virTypedParameterPtr param,
|
||||
const char *name,
|
||||
int type, /* TYPE arg */ ...)
|
||||
G_GNUC_WARN_UNUSED_RESULT;
|
||||
|
||||
int virTypedParamsReplaceString(virTypedParameterPtr *params,
|
||||
int
|
||||
virTypedParamsReplaceString(virTypedParameterPtr *params,
|
||||
int *nparams,
|
||||
const char *name,
|
||||
const char *value);
|
||||
|
||||
void virTypedParamsCopy(virTypedParameterPtr *dst,
|
||||
void
|
||||
virTypedParamsCopy(virTypedParameterPtr *dst,
|
||||
virTypedParameterPtr src,
|
||||
int nparams);
|
||||
|
||||
char *virTypedParameterToString(virTypedParameterPtr param);
|
||||
char *
|
||||
virTypedParameterToString(virTypedParameterPtr param);
|
||||
|
||||
void virTypedParamsRemoteFree(struct _virTypedParameterRemote *remote_params_val,
|
||||
void
|
||||
virTypedParamsRemoteFree(struct _virTypedParameterRemote *remote_params_val,
|
||||
unsigned int remote_params_len);
|
||||
|
||||
int virTypedParamsDeserialize(struct _virTypedParameterRemote *remote_params,
|
||||
int
|
||||
virTypedParamsDeserialize(struct _virTypedParameterRemote *remote_params,
|
||||
unsigned int remote_params_len,
|
||||
int limit,
|
||||
virTypedParameterPtr *params,
|
||||
int *nparams);
|
||||
|
||||
int virTypedParamsSerialize(virTypedParameterPtr params,
|
||||
int
|
||||
virTypedParamsSerialize(virTypedParameterPtr params,
|
||||
int nparams,
|
||||
int limit,
|
||||
struct _virTypedParameterRemote **remote_params_val,
|
||||
@ -132,47 +143,56 @@ struct _virTypedParamList {
|
||||
size_t par_alloc;
|
||||
};
|
||||
|
||||
void virTypedParamListFree(virTypedParamList *list);
|
||||
void
|
||||
virTypedParamListFree(virTypedParamList *list);
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(virTypedParamList, virTypedParamListFree);
|
||||
|
||||
size_t virTypedParamListStealParams(virTypedParamList *list,
|
||||
size_t
|
||||
virTypedParamListStealParams(virTypedParamList *list,
|
||||
virTypedParameterPtr *params);
|
||||
|
||||
virTypedParamList *
|
||||
virTypedParamListFromParams(virTypedParameterPtr *params,
|
||||
size_t nparams);
|
||||
|
||||
int virTypedParamListAddInt(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddInt(virTypedParamList *list,
|
||||
int value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddUInt(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddUInt(virTypedParamList *list,
|
||||
unsigned int value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddLLong(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddLLong(virTypedParamList *list,
|
||||
long long value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddULLong(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddULLong(virTypedParamList *list,
|
||||
unsigned long long value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddString(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddString(virTypedParamList *list,
|
||||
const char *value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddBoolean(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddBoolean(virTypedParamList *list,
|
||||
bool value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
G_GNUC_PRINTF(3, 4) G_GNUC_WARN_UNUSED_RESULT;
|
||||
int virTypedParamListAddDouble(virTypedParamList *list,
|
||||
int
|
||||
virTypedParamListAddDouble(virTypedParamList *list,
|
||||
double value,
|
||||
const char *namefmt,
|
||||
...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user