docs: Fix typos in the code comment

1. s/LifeCycle/Lifecycle/
2. s/virConnectDomainEventTrayChangeReason/virDomainEventTrayChangeReason/

Signed-off-by: Han Han <hhan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
Han Han 2022-01-19 12:19:35 +08:00 committed by Andrea Bolognani
parent d1f89a9d28
commit d29d153fd9
6 changed files with 6 additions and 6 deletions

View File

@ -4054,7 +4054,7 @@ typedef void (*virConnectDomainEventDiskChangeCallback)(virConnectPtr conn,
void *opaque);
/**
* virConnectDomainEventTrayChangeReason:
* virDomainEventTrayChangeReason:
*
* The reason describing why the callback was called
*/

View File

@ -262,7 +262,7 @@ typedef enum {
* virConnectNetworkEventLifecycleCallback:
* @conn: connection object
* @net: network on which the event occurred
* @event: The specific virNetworkEventLifeCycleType which occurred
* @event: The specific virNetworkEventLifecycleType which occurred
* @detail: contains some details on the reason of the event.
* It will be 0 for the while.
* @opaque: application specified data

View File

@ -229,7 +229,7 @@ typedef enum {
* virConnectNodeDeviceEventLifecycleCallback:
* @conn: connection object
* @dev: node device on which the event occurred
* @event: The specific virNodeDeviceEventLifeCycleType which occurred
* @event: The specific virNodeDeviceEventLifecycleType which occurred
* @detail: contains some details on the reason of the event.
* @opaque: application specified data
*

View File

@ -190,7 +190,7 @@ typedef enum {
* virConnectSecretEventLifecycleCallback:
* @conn: connection object
* @secret: secret on which the event occurred
* @event: The specific virSecretEventLifeCycleType which occurred
* @event: The specific virSecretEventLifecycleType which occurred
* @detail: contains some details on the reason of the event.
* @opaque: application specified data
*

View File

@ -488,7 +488,7 @@ typedef enum {
* virConnectStoragePoolEventLifecycleCallback:
* @conn: connection object
* @pool: pool on which the event occurred
* @event: The specific virStoragePoolEventLifeCycleType which occurred
* @event: The specific virStoragePoolEventLifecycleType which occurred
* @detail: contains some details on the reason of the event.
* @opaque: application specified data
*

View File

@ -2822,7 +2822,7 @@ struct _virDomainDef {
virDomainResourceDef *resource;
virDomainIdMapDef idmap;
/* These 3 are based on virDomainLifeCycleAction enum flags */
/* These 3 are based on virDomainLifecycleAction enum flags */
int onReboot;
int onPoweroff;
int onCrash;