~ubuntu-branches/ubuntu/quantal/lxc/quantal-201208301614

« back to all changes in this revision

Viewing changes to src/lxc/commands.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2010-06-28 10:15:48 UTC
  • mfrom: (1.1.4 upstream) (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20100628101548-3m2wszl7kdo32u2n
Tags: 0.7.1-1
* New upstream version
* Convert to quilt format
* Use pristine-tar option in git-buildpackage
* lxc-$distro scripts (debian, fedora, sshd, ubuntu, busybox) are now
  shipped under /usr/lib/lxc/lxc/templates/
* Bump up standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        LXC_COMMAND_TTY,
28
28
        LXC_COMMAND_STOP,
29
29
        LXC_COMMAND_STATE,
 
30
        LXC_COMMAND_PID,
30
31
        LXC_COMMAND_MAX,
31
32
};
32
33
 
38
39
struct lxc_answer {
39
40
        int fd;
40
41
        int ret; /* 0 on success, -errno on failure */
 
42
        pid_t pid;
41
43
};
42
44
 
43
45
struct lxc_command {
45
47
        struct lxc_answer answer;
46
48
};
47
49
 
 
50
extern pid_t get_init_pid(const char *name);
48
51
extern int lxc_command(const char *name, struct lxc_command *command,
49
52
                        int *stopped);
50
53