summaryrefslogtreecommitdiffstats
path: root/libvirt/libvirt_c_prologue.c
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2008-01-19 16:29:10 +0000
committerRichard W.M. Jones <rjones@redhat.com>2008-01-19 16:29:10 +0000
commit4696e201fac1d3138fa583229ffa93478a1dea1d (patch)
treeb9e0eb3adfd039c044f34e26340637292c29bca5 /libvirt/libvirt_c_prologue.c
parent7a65ae1678144521b42be8856c615cf780a3f85c (diff)
downloadvirt-top-4696e201fac1d3138fa583229ffa93478a1dea1d.tar.gz
virt-top-4696e201fac1d3138fa583229ffa93478a1dea1d.tar.xz
virt-top-4696e201fac1d3138fa583229ffa93478a1dea1d.zip
Storage API almost completed, even more autogeneration.
Diffstat (limited to 'libvirt/libvirt_c_prologue.c')
-rw-r--r--libvirt/libvirt_c_prologue.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/libvirt/libvirt_c_prologue.c b/libvirt/libvirt_c_prologue.c
index 1e81d5a..7fe9714 100644
--- a/libvirt/libvirt_c_prologue.c
+++ b/libvirt/libvirt_c_prologue.c
@@ -112,7 +112,7 @@ static value Val_virterror (virErrorPtr err);
* "special" wrapper functions (Val_connect_no_finalize, etc.).
*
* Update 2008/01: Storage pools and volumes work the same way as
- * domains and networks.
+ * domains and networks. And jobs.
*/
/* Unwrap a custom block. */
@@ -125,6 +125,9 @@ static value Val_virterror (virErrorPtr err);
#ifdef HAVE_VIRSTORAGEVOLPTR
#define Vol_val(rv) (*((virStorageVolPtr *)Data_custom_val(rv)))
#endif
+#ifdef HAVE_VIRJOBPTR
+#define Jb_val(rv) (*((virJobPtr *)Data_custom_val(rv)))
+#endif
/* Wrap up a pointer to something in a custom block. */
static value Val_connect (virConnectPtr conn);
@@ -136,6 +139,9 @@ static value Val_pol (virStoragePoolPtr pool);
#ifdef HAVE_VIRSTORAGEVOLPTR
static value Val_vol (virStorageVolPtr vol);
#endif
+#ifdef HAVE_VIRJOBPTR
+static value Val_jb (virJobPtr jb);
+#endif
/* ONLY for use by virterror wrappers. */
static value Val_connect_no_finalize (virConnectPtr conn);
@@ -153,6 +159,9 @@ static value Val_net_no_finalize (virNetworkPtr net);
#ifdef HAVE_VIRSTORAGEVOLPTR
#define Volume_val(rv) (Vol_val(Field((rv),0)))
#endif
+#ifdef HAVE_VIRJOBPTR
+#define Job_val(rv) (Jb_val(Field((rv),0)))
+#endif
#define Connect_domv(rv) (Connect_val(Field((rv),1)))
#define Connect_netv(rv) (Connect_val(Field((rv),1)))
#ifdef HAVE_VIRSTORAGEPOOLPTR
@@ -161,6 +170,9 @@ static value Val_net_no_finalize (virNetworkPtr net);
#ifdef HAVE_VIRSTORAGEVOLPTR
#define Connect_volv(rv) (Connect_val(Field((rv),1)))
#endif
+#ifdef HAVE_VIRJOBPTR
+#define Connect_jobv(rv) (Connect_val(Field((rv),1)))
+#endif
static value Val_domain (virDomainPtr dom, value connv);
static value Val_network (virNetworkPtr net, value connv);
@@ -170,6 +182,9 @@ static value Val_pool (virStoragePoolPtr pol, value connv);
#ifdef HAVE_VIRSTORAGEVOLPTR
static value Val_volume (virStorageVolPtr vol, value connv);
#endif
+#ifdef HAVE_VIRJOBPTR
+static value Val_job (virJobPtr jb, value connv);
+#endif
/* ONLY for use by virterror wrappers. */
static value Val_domain_no_finalize (virDomainPtr dom, value connv);