aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xenctrl.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:27:40 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:27:40 +0100
commit36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8 (patch)
treef6eb1345d9d81843e0213b31d30f672895d8fdac /tools/libxc/xenctrl.h
parent96830282274a9f6a7aafd506976a3639b6f80836 (diff)
downloadxen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.tar.gz
xen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.tar.bz2
xen-36cfb6aa84c1b5a5b5ac15883e34b10f32ab0ab8.zip
libelf: Tidy up logging and remove dependency on stdio.
libelf now permits callers to specify logging callback functions, rather than a FILE*. libelf's non-Xen callers are all libxc users, so the stdio dependency and the default logging callback function (which calls vfprintf) is now in libxc. Xen's use of libxc is unaffected in this patch. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xenctrl.h')
-rw-r--r--tools/libxc/xenctrl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/libxc/xenctrl.h b/tools/libxc/xenctrl.h
index 2d01467d82..f63f96deb7 100644
--- a/tools/libxc/xenctrl.h
+++ b/tools/libxc/xenctrl.h
@@ -19,6 +19,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
#include <xen/xen.h>
#include <xen/domctl.h>
#include <xen/physdev.h>
@@ -1474,4 +1475,8 @@ int xc_memshr_debug_gref(int xc_handle,
uint32_t domid,
grant_ref_t gref);
+struct elf_binary;
+void xc_elf_set_logfile(struct elf_binary *elf, FILE *f, int verbose);
+/* Useful for callers who also use libelf. */
+
#endif /* XENCTRL_H */