Commit a5711932 by Serge Hallyn

Merge pull request #748 from brauner/2015-01-01/lxc_ls

Reimplement lxc-ls in C
parents 5f4aafac 15fd209a
...@@ -215,6 +215,7 @@ bin_PROGRAMS = \ ...@@ -215,6 +215,7 @@ bin_PROGRAMS = \
lxc-execute \ lxc-execute \
lxc-freeze \ lxc-freeze \
lxc-info \ lxc-info \
lxc-ls \
lxc-monitor \ lxc-monitor \
lxc-snapshot \ lxc-snapshot \
lxc-start \ lxc-start \
...@@ -250,6 +251,7 @@ init_lxc_SOURCES = lxc_init.c ...@@ -250,6 +251,7 @@ init_lxc_SOURCES = lxc_init.c
lxc_monitor_SOURCES = lxc_monitor.c lxc_monitor_SOURCES = lxc_monitor.c
lxc_monitord_SOURCES = lxc_monitord.c lxc_monitord_SOURCES = lxc_monitord.c
lxc_clone_SOURCES = lxc_clone.c lxc_clone_SOURCES = lxc_clone.c
lxc_ls_SOURCES = lxc_ls.c
lxc_copy_SOURCES = lxc_copy.c lxc_copy_SOURCES = lxc_copy.c
lxc_start_SOURCES = lxc_start.c lxc_start_SOURCES = lxc_start.c
lxc_stop_SOURCES = lxc_stop.c lxc_stop_SOURCES = lxc_stop.c
......
...@@ -21,11 +21,14 @@ ...@@ -21,11 +21,14 @@
* License along with this library; if not, write to the Free Software * License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef __LXC_ARGUMENTS_H #ifndef __LXC_ARGUMENTS_H
#define __LXC_ARGUMENTS_H #define __LXC_ARGUMENTS_H
#include <getopt.h> #include <getopt.h>
#include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/types.h>
struct lxc_arguments; struct lxc_arguments;
...@@ -117,6 +120,18 @@ struct lxc_arguments { ...@@ -117,6 +120,18 @@ struct lxc_arguments {
int keepname; int keepname;
int keepmac; int keepmac;
/* lxc-ls */
char *ls_fancy_format;
char *ls_groups;
char *ls_regex;
bool ls_active;
bool ls_fancy;
bool ls_frozen;
bool ls_line;
bool ls_nesting;
bool ls_running;
bool ls_stopped;
/* remaining arguments */ /* remaining arguments */
char *const *argv; char *const *argv;
int argc; int argc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment