|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest	out of 
| # HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1300718506 0
# Node ID 825082d71dd594e0eee41a4cb3b8006ea9e31451
# Parent  83ba7f8b634d542fea896ab16ce3f80220d14cb1
libxl: move libxl_doimid_valid_guest out of line
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
diff -r 83ba7f8b634d -r 825082d71dd5 tools/libxl/libxl.h
--- a/tools/libxl/libxl.h       Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/libxl/libxl.h       Mon Mar 21 14:41:46 2011 +0000
@@ -561,12 +561,7 @@ int libxl_cpupool_cpuremove_node(libxl_c
 int libxl_cpupool_cpuremove_node(libxl_ctx *ctx, uint32_t poolid, int node, 
int *cpus);
 int libxl_cpupool_movedomain(libxl_ctx *ctx, uint32_t poolid, uint32_t domid);
 
-static inline int libxl_domid_valid_guest(uint32_t domid)
-{
-    /* returns 1 if the value _could_ be a valid guest domid, 0 otherwise
-     * does not check whether the domain actually exists */
-    return domid > 0 && domid < DOMID_FIRST_RESERVED;
-}
+int libxl_domid_valid_guest(uint32_t domid);
 
 /* common paths */
 const char *libxl_sbindir_path(void);
diff -r 83ba7f8b634d -r 825082d71dd5 tools/libxl/libxl_utils.c
--- a/tools/libxl/libxl_utils.c Mon Mar 21 14:41:46 2011 +0000
+++ b/tools/libxl/libxl_utils.c Mon Mar 21 14:41:46 2011 +0000
@@ -55,6 +55,13 @@ const char *libxl_basename(const char *n
     if (filename)
         return strdup(filename+1);
     return strdup(name);
+}
+
+int libxl_domid_valid_guest(uint32_t domid)
+{
+    /* returns 1 if the value _could_ be a valid guest domid, 0 otherwise
+     * does not check whether the domain actually exists */
+    return domid > 0 && domid < DOMID_FIRST_RESERVED;
 }
 
 unsigned long libxl_get_required_shadow_memory(unsigned long maxmem_kb, 
unsigned int smp_cpus)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [PATCH 15 of 30] tools: Drop $(X11_LDPATH) from build, (continued)
[Xen-devel] [PATCH 15 of 30] tools: Drop $(X11_LDPATH) from build, Ian Campbell
[Xen-devel] [PATCH 07 of 30] tools: remove unnecessary uses of -I, Ian Campbell
[Xen-devel] [PATCH 17 of 30] tools: ocaml: link xl bindings against	libxl, Ian Campbell
[Xen-devel] [PATCH 18 of 30] tools: ocaml: link evtchn bindings	against libxenctrl, Ian Campbell
[Xen-devel] [PATCH 16 of 30] tools: allow Makefiles to define	CFLAGS_foo.o, Ian Campbell
[Xen-devel] [PATCH 19 of 30] tools: users of libxl currently need	to see libxc and libxenstore headers, Ian Campbell
[Xen-devel] [PATCH 20 of 30] tools: ocaml: push CFLAGS usage down	into the specific bindings, Ian Campbell
[Xen-devel] [PATCH 21 of 30] tools: flask: Remove BASECFLAGS,	just use CFLAGS, Ian Campbell
[Xen-devel] [PATCH 22 of 30] tools: flask: remove $(LOADLIBES), Ian Campbell
[Xen-devel] [PATCH 23 of 30] tools: provide generic rules for	compiling .S files, Ian Campbell
[Xen-devel] [PATCH 25 of 30] libxl: move libxl_doimid_valid_guest	out of line,
Ian Campbell <=
[Xen-devel] [PATCH 26 of 30] libxl: drop protype for	libxl_ctx_set_log, Ian Campbell
[Xen-devel] [PATCH 27 of 30] libxl: remove XS transaction from	public API, Ian Campbell
[Xen-devel] [PATCH 29 of 30] tools: drop further uses of -Wp, -MD, 	.$(@F).d to generate dependencies, Ian Campbell
[Xen-devel] [PATCH 24 of 30] tools: Remove $(CFLAGS) from links	lines, Ian Campbell
[Xen-devel] [PATCH 30 of 30] tools: remove pattern matched linking	rules, Ian Campbell
[Xen-devel] [PATCH 28 of 30] libxl: do not expose	libxenctrl/libxenstore headers via libxl.h, Ian Campbell
Re: [Xen-devel] [PATCH 00 of 30] tools: shave build yaks, Ian Jackson
Re: [Xen-devel] [PATCH 00 of 30] tools: shave build yaks, Olaf Hering
[Xen-devel] [PATCH 03 of 30] tools: vnet: Remove, Ian Campbell
 |  |  | 
  
    |  |  |