diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-19 12:29:25 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-19 12:29:25 +0100 |
commit | 749708a7ec8930c34605ec58c18fefe0ed8e7981 (patch) | |
tree | c857730e5bbbf7f9c178c948308ec4e659215f26 /src/guestfs.h | |
parent | bb07a7f858da5d07c57360e62c0ddfd24ce6be45 (diff) | |
download | libguestfs-749708a7ec8930c34605ec58c18fefe0ed8e7981.tar.gz libguestfs-749708a7ec8930c34605ec58c18fefe0ed8e7981.tar.xz libguestfs-749708a7ec8930c34605ec58c18fefe0ed8e7981.zip |
Implement _send_sync, _send_file_sync and _receive_file_sync.
Diffstat (limited to 'src/guestfs.h')
-rw-r--r-- | src/guestfs.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/guestfs.h b/src/guestfs.h index 2b49cbee..8a349dfb 100644 --- a/src/guestfs.h +++ b/src/guestfs.h @@ -74,11 +74,15 @@ 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); extern int guestfs__switch_to_sending (guestfs_h *g); extern int guestfs__switch_to_receiving (guestfs_h *g); -extern int guestfs__send_file_sync (guestfs_main_loop *ml, guestfs_h *g, const char *filename); -extern int guestfs__receive_file_sync (guestfs_main_loop *ml, guestfs_h *g, const char *filename); + +/* These *_sync calls wait until the action is performed, using the + * main loop. We should implement asynchronous versions too. + */ +extern int guestfs__send_sync (guestfs_h *g, int proc_nr, xdrproc_t xdrp, char *args); +extern int guestfs__send_file_sync (guestfs_h *g, const char *filename); +extern int guestfs__receive_file_sync (guestfs_h *g, const char *filename); /* Main loop. */ #define GUESTFS_HANDLE_READABLE 0x1 |