~ubuntu-branches/ubuntu/wily/qemu-kvm-spice/wily

« back to all changes in this revision

Viewing changes to hw/apm.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-10-19 10:44:56 UTC
  • Revision ID: james.westby@ubuntu.com-20111019104456-xgvskumk3sxi97f4
Tags: upstream-0.15.0+noroms
ImportĀ upstreamĀ versionĀ 0.15.0+noroms

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef APM_H
 
2
#define APM_H
 
3
 
 
4
#include <stdint.h>
 
5
#include "qemu-common.h"
 
6
#include "hw.h"
 
7
 
 
8
typedef void (*apm_ctrl_changed_t)(uint32_t val, void *arg);
 
9
 
 
10
typedef struct APMState {
 
11
    uint8_t apmc;
 
12
    uint8_t apms;
 
13
 
 
14
    apm_ctrl_changed_t callback;
 
15
    void *arg;
 
16
} APMState;
 
17
 
 
18
void apm_init(APMState *s, apm_ctrl_changed_t callback, void *arg);
 
19
 
 
20
extern const VMStateDescription vmstate_apm;
 
21
 
 
22
#endif /* APM_H */