diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:13 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2012-03-01 12:26:13 +0000 |
commit | 5fc905880c021ebb6e2a346619f050def5933aba (patch) | |
tree | c5817126fc3aca283ba5b764dc3a5f08ca9ad3ae /tools/libxl/libxl_utils.c | |
parent | 1341ac67a346d29acf95b46ca849414f23f11dde (diff) | |
download | xen-5fc905880c021ebb6e2a346619f050def5933aba.tar.gz xen-5fc905880c021ebb6e2a346619f050def5933aba.tar.bz2 xen-5fc905880c021ebb6e2a346619f050def5933aba.zip |
libxl: remove sysctl.h from public interface
Using sysctl.h is restricted to "node control tools only" and requires magic
defines. Therefore make its use internal to libxl.
Also removes an indirect include of domctl.h which has the same restrction.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/libxl/libxl_utils.c')
-rw-r--r-- | tools/libxl/libxl_utils.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tools/libxl/libxl_utils.c b/tools/libxl/libxl_utils.c index cd819c808c..227364cffe 100644 --- a/tools/libxl/libxl_utils.c +++ b/tools/libxl/libxl_utils.c @@ -19,18 +19,6 @@ #include "libxl_internal.h" -struct schedid_name { - char *name; - int id; -}; - -static struct schedid_name schedid_name[] = { - { "credit", XEN_SCHEDULER_CREDIT }, - { "sedf", XEN_SCHEDULER_SEDF }, - { "credit2", XEN_SCHEDULER_CREDIT2 }, - { NULL, -1 } -}; - const char *libxl_basename(const char *name) { const char *filename; @@ -151,28 +139,6 @@ int libxl_name_to_cpupoolid(libxl_ctx *ctx, const char *name, return ret; } -int libxl_name_to_schedid(libxl_ctx *ctx, const char *name) -{ - int i; - - for (i = 0; schedid_name[i].name != NULL; i++) - if (strcmp(name, schedid_name[i].name) == 0) - return schedid_name[i].id; - - return ERROR_INVAL; -} - -char *libxl_schedid_to_name(libxl_ctx *ctx, int schedid) -{ - int i; - - for (i = 0; schedid_name[i].name != NULL; i++) - if (schedid_name[i].id == schedid) - return schedid_name[i].name; - - return "unknown"; -} - int libxl_get_stubdom_id(libxl_ctx *ctx, int guest_domid) { GC_INIT(ctx); |