Re: [lxc-devel] [PATCH] define list container api (v2)

2013-10-14 Thread Stéphane Graber
On Fri, Oct 11, 2013 at 10:44:39AM -0500, Serge Hallyn wrote: > 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

[lxc-devel] [PATCH] define list container api (v2)

2013-10-11 Thread Serge Hallyn
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

Re: [lxc-devel] [PATCH] define list container api

2013-10-10 Thread Stéphane Graber
On Thu, Oct 10, 2013 at 08:33:28AM -0500, Serge Hallyn wrote: > Quoting Stéphane Graber (stgra...@ubuntu.com): > > On Wed, Oct 09, 2013 at 07:17:43AM -0500, Serge Hallyn wrote: > > > Two new commands are defined: list_defined_containers() and > > > list_active_containers(). Both take an lxcpath (N

Re: [lxc-devel] [PATCH] define list container api

2013-10-10 Thread Serge Hallyn
Quoting Stéphane Graber (stgra...@ubuntu.com): > On Wed, Oct 09, 2013 at 07:17:43AM -0500, Serge Hallyn wrote: > > 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 contai

Re: [lxc-devel] [PATCH] define list container api

2013-10-09 Thread Stéphane Graber
On Wed, Oct 09, 2013 at 07:17:43AM -0500, Serge Hallyn wrote: > 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

[lxc-devel] [PATCH] define list container api

2013-10-09 Thread Serge Hallyn
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