diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-18 15:31:53 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-18 15:31:53 +0100 |
commit | ef499de8946cf4b8120ef7917b2e5d7f9115041f (patch) | |
tree | 8972aedf961b05a1d836ab15dcf946e837d12b42 /src/guestfs.h | |
parent | ad1d84a142169baaed293de71fb9430178d9f999 (diff) | |
download | libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.tar.gz libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.tar.xz libguestfs-ef499de8946cf4b8120ef7917b2e5d7f9115041f.zip |
Separate out the high-level API actions.
- Split out the high-level API actions so that they are in a
separate file, and use the defined guestfs C API, instead of
fiddling around with internal structures.
Diffstat (limited to 'src/guestfs.h')
-rw-r--r-- | src/guestfs.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/guestfs.h b/src/guestfs.h index bfa6b9ca..ea76a183 100644 --- a/src/guestfs.h +++ b/src/guestfs.h @@ -47,6 +47,7 @@ extern guestfs_abort_cb guestfs_get_out_of_memory_handler (guestfs_h *g); #include <guestfs-structs.h> #include <guestfs-actions.h> +/* Free up return values. */ extern void guestfs_free_int_bool (struct guestfs_int_bool *); extern void guestfs_free_lvm_pv_list (struct guestfs_lvm_pv_list *); extern void guestfs_free_lvm_vg_list (struct guestfs_lvm_vg_list *); @@ -65,6 +66,15 @@ extern void guestfs_set_log_message_callback (guestfs_h *g, guestfs_log_message_ extern void guestfs_set_subprocess_quit_callback (guestfs_h *g, guestfs_subprocess_quit_cb cb, void *opaque); extern void guestfs_set_launch_done_callback (guestfs_h *g, guestfs_launch_done_cb cb, void *opaque); +extern void guestfs_error (guestfs_h *g, const char *fs, ...); +extern void guestfs_perrorf (guestfs_h *g, const char *fs, ...); +extern void *guestfs_safe_malloc (guestfs_h *g, size_t nbytes); +extern void *guestfs_safe_realloc (guestfs_h *g, void *ptr, int nbytes); +extern char *guestfs_safe_strdup (guestfs_h *g, const char *str); +extern void *guestfs_safe_memdup (guestfs_h *g, void *ptr, size_t size); + +extern int guestfs_send (guestfs_h *g, int proc_nr, xdrproc_t xdrp, char *args); + /* Main loop. */ #define GUESTFS_HANDLE_READABLE 0x1 #define GUESTFS_HANDLE_WRITABLE 0x2 |