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

« back to all changes in this revision

Viewing changes to src/lxc/conf.h

  • Committer: Package Import Robot
  • Author(s): Daniel Baumann
  • Date: 2012-03-09 13:05:03 UTC
  • mto: (3.1.38 sid)
  • mto: This revision was merged to the branch mainline in revision 94.
  • Revision ID: package-import@ubuntu.com-20120309130503-j0prgw9tsp967bbv
Tags: upstream-0.8.0~rc1
ImportĀ upstreamĀ versionĀ 0.8.0~rc1

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <netinet/in.h>
27
27
#include <sys/param.h>
 
28
#include <stdbool.h>
28
29
 
29
30
#include <lxc/list.h>
30
31
 
114
115
        union netdev_p priv;
115
116
        struct lxc_list ipv4;
116
117
        struct lxc_list ipv6;
 
118
        struct in_addr *ipv4_gateway;
 
119
        bool ipv4_gateway_auto;
 
120
        struct in6_addr *ipv6_gateway;
 
121
        bool ipv6_gateway_auto;
117
122
        char *upscript;
118
123
};
119
124
 
192
197
 * @caps       : list of the capabilities
193
198
 * @tty_info   : tty data
194
199
 * @console    : console data
 
200
 * @ttydir     : directory (under /dev) in which to create console and ttys
195
201
 */
196
202
struct lxc_conf {
197
203
        char *fstab;
198
204
        int tty;
199
205
        int pts;
200
206
        int reboot;
 
207
        int need_utmp_watch;
201
208
        int personality;
202
209
        struct utsname *utsname;
203
210
        struct lxc_list cgroup;
207
214
        struct lxc_tty_info tty_info;
208
215
        struct lxc_console console;
209
216
        struct lxc_rootfs rootfs;
 
217
        char *ttydir;
 
218
        int close_all_fds;
210
219
};
211
220
 
212
221
/*
217
226
extern int lxc_create_network(struct lxc_handler *handler);
218
227
extern void lxc_delete_network(struct lxc_list *networks);
219
228
extern int lxc_assign_network(struct lxc_list *networks, pid_t pid);
 
229
extern int lxc_find_gateway_addresses(struct lxc_handler *handler);
220
230
 
221
231
extern int lxc_create_tty(const char *name, struct lxc_conf *conf);
222
232
extern void lxc_delete_tty(struct lxc_tty_info *tty_info);