Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: a41f104bfbd69e5f068e5ca312a2eb513d9e81b8
      https://github.com/lxc/lxc/commit/a41f104bfbd69e5f068e5ca312a2eb513d9e81b8
  Author: Serge Hallyn <serge.hal...@ubuntu.com>
  Date:   2013-10-14 (Mon, 14 Oct 2013)

  Changed paths:
    M .gitignore
    M src/lxc/lxccontainer.c
    M src/lxc/lxccontainer.h
    M src/tests/Makefile.am
    A src/tests/list.c

  Log Message:
  -----------
  define list container api (v2)

Two new commands are defined: list_defined_containers() and
list_active_containers().  Both take an lxcpath (NULL means
use the default lxcpath) and return the number of containers
found.  If a lxc_container ** is passed in, then an array of
lxc_container's is returned, one for each container found.
The caller must then lxc_container_put() each container and
free the array, as shown in the new list testcase.
If a char ** is passed in, then an array of container names
is returned, after which the caller must free all the names
and the name array, as showsn in the testcase.

Changelog:
        Check for the container config file before trying to
        create an lxc_container *, to save some work. [ per
        stgraber comments]
        Add names ** argument to return only container names.

Signed-off-by: Serge Hallyn <serge.hal...@ubuntu.com>
Acked-by: Stéphane Graber <stgra...@ubuntu.com>



------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to