[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 2/5] libxl: add vsnd list and info
On Mon, Oct 02, 2017 at 12:49:21PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx> > > Add getting vsnd list amd info API > > Signed-off-by: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx> Same comments for previous patch apply here, too. > --- > tools/libxl/libxl.h | 10 ++ > tools/libxl/libxl_types.idl | 19 +++ > tools/libxl/libxl_utils.h | 3 + > tools/libxl/libxl_vsnd.c | 359 > +++++++++++++++++++++++++++++++++++++++++++- > 4 files changed, 388 insertions(+), 3 deletions(-) > > [...] > +static int libxl__sample_rates_from_string(libxl__gc *gc, const char *str, > + libxl_vsnd_params *params) > +{ > + char *tmp = libxl__strdup(gc, str); > + > + params->num_sample_rates = 0; > + params->sample_rates = NULL; > + > + char *p = strtok(tmp, " ,"); > + > + while (p != NULL) { > + params->sample_rates = realloc(params->sample_rates, libxl__realloc(NOGC, ...) [...] > + > +static int libxl__pcm_from_xenstore(libxl__gc *gc, const char *path, > + libxl_vsnd_pcm *pcm) > +{ > + libxl_ctx *ctx = libxl__gc_owner(gc); You can use CTX throughout. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |