]> git.proxmox.com Git - mirror_lxc.git/blame - src/lxc/confile_legacy.h
lxc-user-nic: bugfixes
[mirror_lxc.git] / src / lxc / confile_legacy.h
CommitLineData
f9373e40
CB
1/*
2 * lxc: linux Container library
3 *
4 * (C) Copyright IBM Corp. 2007, 2008
5 *
6 * Authors:
7 * Daniel Lezcano <daniel.lezcano at free.fr>
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 */
23
953fe44f
CB
24#ifndef __LXC_CONFILE_LEGACY_H
25#define __LXC_CONFILE_LEGACY_H
f9373e40
CB
26
27#include <stdio.h>
28#include <lxc/attach_options.h>
29#include <stdbool.h>
30
31struct lxc_conf;
32struct lxc_list;
33
34extern int set_config_network_legacy_type(const char *, const char *,
35 struct lxc_conf *, void *);
36extern int set_config_network_legacy_flags(const char *, const char *,
37 struct lxc_conf *, void *);
38extern int set_config_network_legacy_link(const char *, const char *,
39 struct lxc_conf *, void *);
40extern int set_config_network_legacy_name(const char *, const char *,
41 struct lxc_conf *, void *);
42extern int set_config_network_legacy_veth_pair(const char *, const char *,
43 struct lxc_conf *, void *);
44extern int set_config_network_legacy_macvlan_mode(const char *, const char *,
45 struct lxc_conf *, void *);
46extern int set_config_network_legacy_hwaddr(const char *, const char *,
47 struct lxc_conf *, void *);
48extern int set_config_network_legacy_vlan_id(const char *, const char *,
49 struct lxc_conf *, void *);
50extern int set_config_network_legacy_mtu(const char *, const char *,
51 struct lxc_conf *, void *);
52extern int set_config_network_legacy_ipv4(const char *, const char *,
53 struct lxc_conf *, void *);
54extern int set_config_network_legacy_ipv4_gateway(const char *, const char *,
55 struct lxc_conf *, void *);
56extern int set_config_network_legacy_script_up(const char *, const char *,
57 struct lxc_conf *, void *);
58extern int set_config_network_legacy_script_down(const char *, const char *,
59 struct lxc_conf *, void *);
60extern int set_config_network_legacy_ipv6(const char *, const char *,
61 struct lxc_conf *, void *);
62extern int set_config_network_legacy_ipv6_gateway(const char *, const char *,
63 struct lxc_conf *, void *);
64extern int set_config_network_legacy_nic(const char *, const char *,
65 struct lxc_conf *, void *);
66extern int get_config_network_legacy_item(const char *, char *, int,
67 struct lxc_conf *, void *);
68extern int clr_config_network_legacy_item(const char *, struct lxc_conf *,
69 void *);
70
f9373e40
CB
71extern int lxc_list_nicconfigs_legacy(struct lxc_conf *c, const char *key,
72 char *retv, int inlen);
73extern int lxc_listconfigs(char *retv, int inlen);
74
75extern bool network_new_hwaddrs(struct lxc_conf *conf);
953fe44f 76
71e287ca 77#define lxc_config_legacy_define(name) \
78 extern int set_config_##name(const char *, const char *, \
79 struct lxc_conf *, void *); \
80 extern int get_config_##name(const char *, char *, int, \
81 struct lxc_conf *, void *); \
82 extern int clr_config_##name(const char *, struct lxc_conf *, \
83 void *);
953fe44f 84
71e287ca 85lxc_config_legacy_define(network_legacy);
86lxc_config_legacy_define(lsm_aa_profile);
87lxc_config_legacy_define(lsm_aa_incomplete);
88lxc_config_legacy_define(lsm_se_context);
240d4b74 89lxc_config_legacy_define(limit);
953fe44f 90
953fe44f 91#endif /* __LXC_CONFILE_LEGACY_H */