aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-11 09:41:16 +0100
committerKeir Fraser <keir@xensource.com>2007-10-11 09:41:16 +0100
commit1a55b4207e077f5dc1a840c921139a41610bc160 (patch)
tree2022afd23a1ae202702562f7b023d37e8fde6dfe /tools/libxen/include
parent09fa4973a1fe64316715d2c7c876eda503af0a3f (diff)
downloadxen-1a55b4207e077f5dc1a840c921139a41610bc160.tar.gz
xen-1a55b4207e077f5dc1a840c921139a41610bc160.tar.bz2
xen-1a55b4207e077f5dc1a840c921139a41610bc160.zip
[vTPM] Add set/get_other_config to Xen-API.
Add get_- and set_other_config methods to the vTPM class. Write the parameters into the xenstore while the domain is running prefixing it with 'oc_'. Also I add the methods to the C library as well as the documentation. Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r--tools/libxen/include/xen/api/xen_vtpm.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/libxen/include/xen/api/xen_vtpm.h b/tools/libxen/include/xen/api/xen_vtpm.h
index 920948d134..9b3b2ebd88 100644
--- a/tools/libxen/include/xen/api/xen_vtpm.h
+++ b/tools/libxen/include/xen/api/xen_vtpm.h
@@ -66,6 +66,7 @@ typedef struct xen_vtpm_record
char *uuid;
struct xen_vm_record_opt *vm;
struct xen_vm_record_opt *backend;
+ xen_string_string_map *other_config;
} xen_vtpm_record;
/**
@@ -196,4 +197,22 @@ extern bool
xen_vtpm_get_backend(xen_session *session, xen_vm *result, xen_vtpm vtpm);
+/**
+ * Get the other_config field of the given VTPM.
+ */
+extern bool
+xen_vtpm_get_other_config(xen_session *session,
+ xen_string_string_map **result,
+ xen_vtpm vtpm);
+
+
+/**
+ * Set the other_config field of the given VTPM.
+ */
+extern bool
+xen_vtpm_set_other_config(xen_session *session,
+ xen_vtpm vtpm,
+ xen_string_string_map *other_config);
+
+
#endif