Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format registerDomainEvent(event) API doc. #97

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -523,21 +523,25 @@ custom set of parameters for the event.

#### Parameters:
An object with the following structure:

```js
{ 'evtype': hypervisor.VIR_DOMAIN_EVENT_ID_LIFECYCLE,
'domain': mydomain,
'callback': function(hyp, dom, data) {

}
}
}
evtype is an OR'ed set of the following constants:
hypervisor.VIR_DOMAIN_EVENT_ID_LIFECYCLE
hypervisor.VIR_DOMAIN_EVENT_ID_REBOOT
hypervisor.VIR_DOMAIN_EVENT_ID_RTC_CHANGE
hypervisor.VIR_DOMAIN_EVENT_ID_WATCHDOG
hypervisor.VIR_DOMAIN_EVENT_ID_IO_ERROR
hypervisor.VIR_DOMAIN_EVENT_ID_GRAPHICS
hypervisor.VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON
hypervisor.VIR_DOMAIN_EVENT_ID_LAST
```

`evtype` is an OR'ed set of the following constants:
- `hypervisor.VIR_DOMAIN_EVENT_ID_LIFECYCLE`
- `hypervisor.VIR_DOMAIN_EVENT_ID_REBOOT`
- `hypervisor.VIR_DOMAIN_EVENT_ID_RTC_CHANGE`
- `hypervisor.VIR_DOMAIN_EVENT_ID_WATCHDOG`
- `hypervisor.VIR_DOMAIN_EVENT_ID_IO_ERROR`
- `hypervisor.VIR_DOMAIN_EVENT_ID_GRAPHICS`
- `hypervisor.VIR_DOMAIN_EVENT_ID_IO_ERROR_REASON`
- `hypervisor.VIR_DOMAIN_EVENT_ID_LAST`

#### Return:

Expand Down