~ubuntu-branches/ubuntu/raring/libvirt/raring

« back to all changes in this revision

Viewing changes to src/lxc/lxc_monitor.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-11-19 10:41:02 UTC
  • mfrom: (1.2.15) (223.1.2 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121119104102-l6ewdppikysbzztu
Tags: 1.0.0-0ubuntu2
debian/patches/add-armhf-sysinfo-infomration.patch: Disable
to fix FTBFS on arm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2010-2012 Red Hat, Inc.
 
3
 *
 
4
 * lxc_monitor.h: client for LXC controller monitor
 
5
 *
 
6
 * This library is free software; you can redistribute it and/or
 
7
 * modify it under the terms of the GNU Lesser General Public
 
8
 * License as published by the Free Software Foundation; either
 
9
 * version 2.1 of the License, or (at your option) any later version.
 
10
 *
 
11
 * This library is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
 * Lesser General Public License for more details.
 
15
 *
 
16
 * You should have received a copy of the GNU Lesser General Public
 
17
 * License along with this library.  If not, see
 
18
 * <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef __LXC_MONITOR_H__
 
22
# define __LXC_MONITOR_H__
 
23
 
 
24
# include "virobject.h"
 
25
# include "domain_conf.h"
 
26
# include "lxc_protocol.h"
 
27
 
 
28
typedef struct _virLXCMonitor virLXCMonitor;
 
29
typedef virLXCMonitor *virLXCMonitorPtr;
 
30
 
 
31
typedef struct _virLXCMonitorCallbacks virLXCMonitorCallbacks;
 
32
typedef virLXCMonitorCallbacks *virLXCMonitorCallbacksPtr;
 
33
 
 
34
typedef void (*virLXCMonitorCallbackDestroy)(virLXCMonitorPtr mon,
 
35
                                             virDomainObjPtr vm);
 
36
typedef void (*virLXCMonitorCallbackEOFNotify)(virLXCMonitorPtr mon,
 
37
                                               virDomainObjPtr vm);
 
38
 
 
39
typedef void (*virLXCMonitorCallbackExitNotify)(virLXCMonitorPtr mon,
 
40
                                                virLXCProtocolExitStatus status,
 
41
                                                virDomainObjPtr vm);
 
42
 
 
43
struct _virLXCMonitorCallbacks {
 
44
    virLXCMonitorCallbackDestroy destroy;
 
45
    virLXCMonitorCallbackEOFNotify eofNotify;
 
46
    virLXCMonitorCallbackExitNotify exitNotify;
 
47
};
 
48
 
 
49
virLXCMonitorPtr virLXCMonitorNew(virDomainObjPtr vm,
 
50
                                  const char *socketdir,
 
51
                                  virLXCMonitorCallbacksPtr cb);
 
52
 
 
53
void virLXCMonitorClose(virLXCMonitorPtr mon);
 
54
 
 
55
void virLXCMonitorLock(virLXCMonitorPtr mon);
 
56
void virLXCMonitorUnlock(virLXCMonitorPtr mon);
 
57
 
 
58
#endif /* __LXC_MONITOR_H__ */