]>
Commit | Line | Data |
---|---|---|
aafa5f96 CB |
1 | /* liblxcapi |
2 | * | |
3 | * Copyright © 2018 Christian Brauner <christian.brauner@ubuntu.com>. | |
4 | * Copyright © 2018 Canonical Ltd. | |
5 | * | |
6 | * This program is free software; you can redistribute it and/or modify | |
7 | * it under the terms of the GNU General Public License version 2, as | |
8 | * published by the Free Software Foundation. | |
9 | * | |
10 | * This program is distributed in the hope that it will be useful, | |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | * GNU General Public License for more details. | |
14 | * | |
15 | * You should have received a copy of the GNU General Public License along | |
16 | * with this program; if not, write to the Free Software Foundation, Inc., | |
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 | */ | |
19 | ||
20 | #ifndef __LXC_API_EXTENSIONS_H | |
21 | #define __LXC_API_EXTENSIONS_H | |
22 | ||
aafa5f96 CB |
23 | #include <stdio.h> |
24 | #include <stdlib.h> | |
25 | ||
26 | /* | |
27 | * api_extensions is the list of all API extensions in the order they were | |
28 | * added. | |
29 | ||
30 | The following kind of changes come with a new extensions: | |
31 | ||
32 | - New public functions | |
33 | - New configuration key | |
34 | - New valid values for a configuration key | |
35 | */ | |
36 | static char *api_extensions[] = { | |
37 | "lxc_log", | |
38 | "lxc_config_item_is_supported", | |
39 | "console_log", | |
40 | "reboot2", | |
41 | "mount_injection", | |
42 | "cgroup_relative", | |
43 | }; | |
44 | ||
45 | static size_t nr_api_extensions = sizeof(api_extensions) / sizeof(*api_extensions); | |
46 | ||
47 | #endif /* __LXC_API_EXTENSIONS_H */ |