~serge-hallyn/ubuntu/natty/lxc/lxc-fix-3bugs

« back to all changes in this revision

Viewing changes to src/lxc/start.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter, Stéphane Graber, Guido Trotter
  • Date: 2010-01-10 10:40:21 UTC
  • mfrom: (1.1.2 upstream) (3.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100110104021-z8rj5zw5mlvra08l
Tags: 0.6.4-1
[ Stéphane Graber ]
* Upgrade standards-version to 3.8.3
* Drop the copy of etc/* from rules as "etc" is no longer in the tarball

[ Guido Trotter ]
* New Upstream Version
* Update libcap2-dev dependency to libcap-dev
* Install upstream-built man pages via debian/lxc.manpages
* Drop unneeded docbook-utils build dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 * License along with this library; if not, write to the Free Software
21
21
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
22
 */
23
 
 
24
 
struct lxc_handler;
25
 
 
26
 
extern struct lxc_handler *lxc_init(const char *name);
 
23
#ifndef __lxc_state_h
 
24
#define __lxc_state_h
 
25
 
 
26
#include <lxc/conf.h>
 
27
#include <lxc/state.h>
 
28
 
 
29
struct lxc_handler {
 
30
 
 
31
        pid_t pid;
 
32
        lxc_state_t state;
 
33
 
 
34
        int sigfd;
 
35
        char nsgroup[MAXPATHLEN];
 
36
        sigset_t oldmask;
 
37
        struct lxc_conf conf;
 
38
};
 
39
 
 
40
extern struct lxc_handler *lxc_init(const char *name, const char *rcfile);
27
41
extern int lxc_spawn(const char *name, struct lxc_handler *handler,
28
42
                     char *const argv[]);
29
43
 
30
44
extern int lxc_poll(const char *name, struct lxc_handler *handler);
31
45
extern void lxc_abort(const char *name, struct lxc_handler *handler);
32
46
extern void lxc_fini(const char *name, struct lxc_handler *handler);
33
 
 
34
 
 
 
47
extern int lxc_set_state(const char *, struct lxc_handler *, lxc_state_t);
 
48
 
 
49
#endif
35
50