*
* Macro providing the version of the library as
* version * 1,000,000 + minor * 1000 + micro
+ *
+ * Since: v0.0.1
*/
# define LIBVIR_VERSION_NUMBER @LIBVIRT_VERSION_NUMBER@
* #if LIBVIR_CHECK_VERSION(1,1,3)
* // some code that only works in 1.1.3 and newer
* #endif
+ *
+ * Since: v1.2.0
*/
# define LIBVIR_CHECK_VERSION(major, minor, micro) \
((major) * 1000000 + (minor) * 1000 + (micro) <= LIBVIR_VERSION_NUMBER)
* from a context which is not re-entrant safe. Failure to
* abide by this requirement may lead to application deadlocks
* or crashes.
+ *
+ * Since: v0.5.0
*/
typedef void (*virFreeCallback)(void *opaque);
+/**
+ * virConnectCloseReason:
+ *
+ * Since: v0.10.0
+ */
typedef enum {
- VIR_CONNECT_CLOSE_REASON_ERROR = 0, /* Misc I/O error */
- VIR_CONNECT_CLOSE_REASON_EOF = 1, /* End-of-file from server */
- VIR_CONNECT_CLOSE_REASON_KEEPALIVE = 2, /* Keepalive timer triggered */
- VIR_CONNECT_CLOSE_REASON_CLIENT = 3, /* Client requested it */
+ VIR_CONNECT_CLOSE_REASON_ERROR = 0, /* Misc I/O error (Since: v0.10.0) */
+ VIR_CONNECT_CLOSE_REASON_EOF = 1, /* End-of-file from server (Since: v0.10.0) */
+ VIR_CONNECT_CLOSE_REASON_KEEPALIVE = 2, /* Keepalive timer triggered (Since: v0.10.0) */
+ VIR_CONNECT_CLOSE_REASON_CLIENT = 3, /* Client requested it (Since: v0.10.0) */
# ifdef VIR_ENUM_SENTINELS
- VIR_CONNECT_CLOSE_REASON_LAST
+ VIR_CONNECT_CLOSE_REASON_LAST /* (Since: v0.10.0) */
# endif
} virConnectCloseReason;
* virTypedParameterType:
*
* Express the type of a virTypedParameter
+ *
+ * Since: v0.9.2
*/
typedef enum {
- VIR_TYPED_PARAM_INT = 1, /* integer case */
- VIR_TYPED_PARAM_UINT = 2, /* unsigned integer case */
- VIR_TYPED_PARAM_LLONG = 3, /* long long case */
- VIR_TYPED_PARAM_ULLONG = 4, /* unsigned long long case */
- VIR_TYPED_PARAM_DOUBLE = 5, /* double case */
- VIR_TYPED_PARAM_BOOLEAN = 6, /* boolean(character) case */
- VIR_TYPED_PARAM_STRING = 7, /* string case */
+ VIR_TYPED_PARAM_INT = 1, /* integer case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_UINT = 2, /* unsigned integer case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_LLONG = 3, /* long long case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_ULLONG = 4, /* unsigned long long case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_DOUBLE = 5, /* double case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_BOOLEAN = 6, /* boolean(character) case (Since: v0.9.2) */
+ VIR_TYPED_PARAM_STRING = 7, /* string case (Since: v0.9.8) */
# ifdef VIR_ENUM_SENTINELS
- VIR_TYPED_PARAM_LAST
+ VIR_TYPED_PARAM_LAST /* (Since: v0.9.10) */
# endif
} virTypedParameterType;
* Flags related to libvirt APIs that use virTypedParameter.
*
* These enums should not conflict with those of virDomainModificationImpact.
+ *
+ * Since: v0.9.8
*/
typedef enum {
/* 1 << 0 is reserved for virDomainModificationImpact */
* the user does not have to worry about it; however, manually
* setting the flag can be used to reject servers that cannot
* return typed strings, even if no strings would be returned.
+ *
+ * Since: v0.9.8
*/
VIR_TYPED_PARAM_STRING_OKAY = 1 << 2,
* VIR_TYPED_PARAM_FIELD_LENGTH:
*
* Macro providing the field length of virTypedParameter name
+ *
+ * Since: v0.9.2
*/
# define VIR_TYPED_PARAM_FIELD_LENGTH 80
* The types virSchedParameter, virBlkioParameter, and
* virMemoryParameter are aliases of this type, for use when
* targeting libvirt earlier than 0.9.2.
+ *
+ * Since: v0.9.2
*/
typedef struct _virTypedParameter virTypedParameter;
* virTypedParameterPtr:
*
* a pointer to a virTypedParameter structure.
+ *
+ * Since: v0.9.2
*/
typedef virTypedParameter *virTypedParameterPtr;
*
* Returns pointer to the parameter or NULL if it does not exist in @params.
* This function does not raise an error, even when returning NULL.
+ *
+ * Since: v1.0.2
*/
virTypedParameterPtr
virTypedParamsGet(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetInt(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetUInt(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetLLong(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetULLong(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetDouble(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetBoolean(virTypedParameterPtr params,
*
* Returns 1 on success, 0 when the parameter does not exist in @params, or
* -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsGetString(virTypedParameterPtr params,
* if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddInt(virTypedParameterPtr *params,
* error if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddUInt(virTypedParameterPtr *params,
* error if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddLLong(virTypedParameterPtr *params,
* error if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddULLong(virTypedParameterPtr *params,
* error if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddDouble(virTypedParameterPtr *params,
* error if the parameter already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddBoolean(virTypedParameterPtr *params,
* already exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddString(virTypedParameterPtr *params,
* key @name.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.2.17
*/
int
virTypedParamsAddStringList(virTypedParameterPtr *params,
* exists in @params.
*
* Returns 0 on success, -1 on error.
+ *
+ * Since: v1.0.2
*/
int
virTypedParamsAddFromString(virTypedParameterPtr *params,
* is not freed; use virTypedParamsFree if you want it to be freed too.
*
* Returns nothing.
+ *
+ * Since: v1.0.2
*/
void
virTypedParamsClear(virTypedParameterPtr params,
* @params.
*
* Returns nothing.
+ *
+ * Since: v1.0.2
*/
void
virTypedParamsFree(virTypedParameterPtr params,