From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Roger_Pau_Monn=E9?= Subject: Re: [PATCH v2 1/3] libxl: add libxl__xs_get_permissions helper Date: Wed, 8 May 2013 11:32:08 +0200 Message-ID: <518A1B98.9000600@citrix.com> References: <8834e489cf1b00a22bb021a1d422563b66c9d898.1367987733.git.marmarek@invisiblethingslab.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <8834e489cf1b00a22bb021a1d422563b66c9d898.1367987733.git.marmarek@invisiblethingslab.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Marek Marczykowski Cc: Ian Jackson , Ian Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On 08/05/13 05:39, Marek Marczykowski wrote: > = > Signed-off-by: Marek Marczykowski Acked-by: Roger Pau Monn=E9 > --- > tools/libxl/libxl_internal.h | 2 ++ > tools/libxl/libxl_xshelp.c | 11 +++++++++++ > 2 files changed, 13 insertions(+) > = > diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h > index 573e3d1..2e9d9b5 100644 > --- a/tools/libxl/libxl_internal.h > +++ b/tools/libxl/libxl_internal.h > @@ -533,6 +533,8 @@ _hidden char *libxl__xs_get_dompath(libxl__gc *gc, ui= nt32_t domid); > = > _hidden char *libxl__xs_read(libxl__gc *gc, xs_transaction_t t, > const char *path); > +_hidden struct xs_permissions * libxl__xs_get_permissions(libxl__gc *gc, > + xs_transaction_t t, const char *path, unsigned int *num); > _hidden char **libxl__xs_directory(libxl__gc *gc, xs_transaction_t t, > const char *path, unsigned int *nb); > /* On error: returns NULL, sets errno (no logging) */ > diff --git a/tools/libxl/libxl_xshelp.c b/tools/libxl/libxl_xshelp.c > index 52af484..48960de 100644 > --- a/tools/libxl/libxl_xshelp.c > +++ b/tools/libxl/libxl_xshelp.c > @@ -115,6 +115,17 @@ char * libxl__xs_read(libxl__gc *gc, xs_transaction_= t t, const char *path) > return ptr; > } > = > +struct xs_permissions * libxl__xs_get_permissions(libxl__gc *gc, > + xs_transaction_t t, const char *path, unsigned int *num) > +{ > + libxl_ctx *ctx =3D libxl__gc_owner(gc); > + struct xs_permissions *ptr; > + > + ptr =3D xs_get_permissions(ctx->xsh, t, path, num); > + libxl__ptr_add(gc, ptr); > + return ptr; > +} > + > char *libxl__xs_get_dompath(libxl__gc *gc, uint32_t domid) > { > libxl_ctx *ctx =3D libxl__gc_owner(gc); > =