mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
Fixes for documentation extraction
* include/libvirt/libvirt.h.in: some of the function type description were broken so they could not be automatically documented * src/util/event.c docs/apibuild.py: event.c exports one public API so it needs to be scanned too, avoid a few warnings
This commit is contained in:
parent
a5c646a770
commit
0df671513d
@ -22,6 +22,7 @@ included_files = {
|
|||||||
"virterror.h": "header with error specific API definitions",
|
"virterror.h": "header with error specific API definitions",
|
||||||
"libvirt.c": "Main interfaces for the libvirt library",
|
"libvirt.c": "Main interfaces for the libvirt library",
|
||||||
"virterror.c": "implements error handling and reporting code for libvirt",
|
"virterror.c": "implements error handling and reporting code for libvirt",
|
||||||
|
"event.c": "event loop for monitoring file handles",
|
||||||
}
|
}
|
||||||
|
|
||||||
ignored_words = {
|
ignored_words = {
|
||||||
@ -43,6 +44,12 @@ ignored_functions = {
|
|||||||
"virDomainMigratePrepareTunnel": "private function for tunnelled migration",
|
"virDomainMigratePrepareTunnel": "private function for tunnelled migration",
|
||||||
"virDrvSupportsFeature": "private function for remote access",
|
"virDrvSupportsFeature": "private function for remote access",
|
||||||
"DllMain": "specific function for Win32",
|
"DllMain": "specific function for Win32",
|
||||||
|
"virEventAddHandle": "internal function in event.c",
|
||||||
|
"virEventUpdateHandle": "internal function in event.c",
|
||||||
|
"virEventRemoveHandle": "internal function in event.c",
|
||||||
|
"virEventAddTimeout": "internal function in event.c",
|
||||||
|
"virEventUpdateTimeout": "internal function in event.c",
|
||||||
|
"virEventRemoveTimeout": "internal function in event.c",
|
||||||
}
|
}
|
||||||
|
|
||||||
def escape(raw):
|
def escape(raw):
|
||||||
|
@ -490,19 +490,17 @@ typedef virConnectCredential *virConnectCredentialPtr;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnectCredCallbackPtr
|
* virConnectAuthCallbackPtr:
|
||||||
*
|
* @cred: list of virConnectCredential object to fetch from user
|
||||||
* @param authtype type of authentication being performed
|
* @ncred: size of cred list
|
||||||
* @param cred list of virConnectCredential object to fetch from user
|
* @cbdata: opaque data passed to virConnectOpenAuth
|
||||||
* @param ncred size of cred list
|
|
||||||
* @param cbdata opaque data passed to virConnectOpenAuth
|
|
||||||
*
|
*
|
||||||
* When authentication requires one or more interactions, this callback
|
* When authentication requires one or more interactions, this callback
|
||||||
* is invoked. For each interaction supplied, data must be gathered
|
* is invoked. For each interaction supplied, data must be gathered
|
||||||
* from the user and filled in to the 'result' and 'resultlen' fields.
|
* from the user and filled in to the 'result' and 'resultlen' fields.
|
||||||
* If an interaction can not be filled, fill in NULL and 0.
|
* If an interaction can not be filled, fill in NULL and 0.
|
||||||
*
|
*
|
||||||
* Return 0 if all interactions were filled, or -1 upon error
|
* Returns 0 if all interactions were filled, or -1 upon error
|
||||||
*/
|
*/
|
||||||
typedef int (*virConnectAuthCallbackPtr)(virConnectCredentialPtr cred,
|
typedef int (*virConnectAuthCallbackPtr)(virConnectCredentialPtr cred,
|
||||||
unsigned int ncred,
|
unsigned int ncred,
|
||||||
@ -1578,6 +1576,14 @@ typedef int (*virConnectDomainEventCallback)(virConnectPtr conn,
|
|||||||
int detail,
|
int detail,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* virFreeCallback:
|
||||||
|
* @opaque: opaque user data provided at registration
|
||||||
|
*
|
||||||
|
* Type for a domain event callback when the event is deregistered and
|
||||||
|
* need to be freed, @opaque is provided along with the callback at
|
||||||
|
* registration time
|
||||||
|
*/
|
||||||
typedef void (*virFreeCallback)(void *opaque);
|
typedef void (*virFreeCallback)(void *opaque);
|
||||||
|
|
||||||
int virConnectDomainEventRegister(virConnectPtr conn,
|
int virConnectDomainEventRegister(virConnectPtr conn,
|
||||||
@ -2071,8 +2077,15 @@ int virDomainSnapshotDelete(virDomainSnapshotPtr snapshot,
|
|||||||
|
|
||||||
int virDomainSnapshotFree(virDomainSnapshotPtr snapshot);
|
int virDomainSnapshotFree(virDomainSnapshotPtr snapshot);
|
||||||
|
|
||||||
/* A generic callback definition. Specific events usually have a customization
|
/*
|
||||||
* with extra parameters */
|
* virConnectDomainEventGenericCallback:
|
||||||
|
* @conn: the connection pointer
|
||||||
|
* @dom: the domain pointer
|
||||||
|
* @opaque: application specified data
|
||||||
|
*
|
||||||
|
* A generic domain event callback handler. Specific events usually
|
||||||
|
* have a customization with extra parameters
|
||||||
|
*/
|
||||||
typedef void (*virConnectDomainEventGenericCallback)(virConnectPtr conn,
|
typedef void (*virConnectDomainEventGenericCallback)(virConnectPtr conn,
|
||||||
virDomainPtr dom,
|
virDomainPtr dom,
|
||||||
void *opaque);
|
void *opaque);
|
||||||
@ -2135,7 +2148,7 @@ typedef enum {
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnectDomainEventWatchdogCallback:
|
* virConnectDomainEventIOErrorCallback:
|
||||||
* @conn: connection object
|
* @conn: connection object
|
||||||
* @dom: domain on which the event occurred
|
* @dom: domain on which the event occurred
|
||||||
* @srcPath: The host file on which the IO error occurred
|
* @srcPath: The host file on which the IO error occurred
|
||||||
@ -2145,7 +2158,6 @@ typedef enum {
|
|||||||
*
|
*
|
||||||
* The callback signature to use when registering for an event of type
|
* The callback signature to use when registering for an event of type
|
||||||
* VIR_DOMAIN_EVENT_ID_IO_ERROR with virConnectDomainEventRegisterAny()
|
* VIR_DOMAIN_EVENT_ID_IO_ERROR with virConnectDomainEventRegisterAny()
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
typedef void (*virConnectDomainEventIOErrorCallback)(virConnectPtr conn,
|
typedef void (*virConnectDomainEventIOErrorCallback)(virConnectPtr conn,
|
||||||
virDomainPtr dom,
|
virDomainPtr dom,
|
||||||
@ -2155,7 +2167,7 @@ typedef void (*virConnectDomainEventIOErrorCallback)(virConnectPtr conn,
|
|||||||
void *opaque);
|
void *opaque);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virConnectDomainEventWatchdogCallback:
|
* virConnectDomainEventIOErrorReasonCallback:
|
||||||
* @conn: connection object
|
* @conn: connection object
|
||||||
* @dom: domain on which the event occurred
|
* @dom: domain on which the event occurred
|
||||||
* @srcPath: The host file on which the IO error occurred
|
* @srcPath: The host file on which the IO error occurred
|
||||||
|
@ -79,13 +79,14 @@ int virEventRemoveTimeout(int timer) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* virEventRegisterImpl:
|
* virEventRegisterImpl:
|
||||||
* Register an EventImpl
|
|
||||||
* @addHandle: the callback to add fd handles
|
* @addHandle: the callback to add fd handles
|
||||||
* @updateHandle: the callback to update fd handles
|
* @updateHandle: the callback to update fd handles
|
||||||
* @removeHandle: the callback to remove fd handles
|
* @removeHandle: the callback to remove fd handles
|
||||||
* @addTimeout: the callback to add a timeout
|
* @addTimeout: the callback to add a timeout
|
||||||
* @updateTimeout: the callback to update a timeout
|
* @updateTimeout: the callback to update a timeout
|
||||||
* @removeTimeout: the callback to remove a timeout
|
* @removeTimeout: the callback to remove a timeout
|
||||||
|
*
|
||||||
|
* Registers an event implementation
|
||||||
*/
|
*/
|
||||||
void virEventRegisterImpl(virEventAddHandleFunc addHandle,
|
void virEventRegisterImpl(virEventAddHandleFunc addHandle,
|
||||||
virEventUpdateHandleFunc updateHandle,
|
virEventUpdateHandleFunc updateHandle,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user