summaryrefslogtreecommitdiffstats
path: root/src/guestfs-internal.h
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-04-26 15:33:12 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-04-26 16:48:47 +0100
commita505423e589b4820745e855c49dded60afc04f6a (patch)
treef4ac5dc0141d0974ad4f7703996f0da78deed9f9 /src/guestfs-internal.h
parenteafefab93756b980bdb892df86e1ac3e5b88a260 (diff)
downloadlibguestfs-a505423e589b4820745e855c49dded60afc04f6a.tar.gz
libguestfs-a505423e589b4820745e855c49dded60afc04f6a.tar.xz
libguestfs-a505423e589b4820745e855c49dded60afc04f6a.zip
lib: Remove the BUSY state.
Originally this state was intended so that in some way you could find out if the appliance was running a command. However there was never a thread-safe way to access the state of the handle, so in effect you could never do anything useful safely with this information. This commit completely removes the BUSY state. The only visible change is to the guestfs_is_busy API. Previously you could never call this safely from another thread. If you called it from the same thread it would always return false (since the current thread can't be running a libguestfs command at that point by definition). Now it always returns false.
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r--src/guestfs-internal.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 0492c9ea..a41212da 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -142,7 +142,7 @@
#define ROUTER "169.254.2.2"
/* GuestFS handle and connection. */
-enum state { CONFIG, LAUNCHING, READY, BUSY, NO_HANDLE };
+enum state { CONFIG, LAUNCHING, READY, NO_HANDLE };
/* Attach method. */
enum attach_method { ATTACH_METHOD_APPLIANCE = 0, ATTACH_METHOD_UNIX };
@@ -406,8 +406,6 @@ extern void guestfs___free_fuse (guestfs_h *g);
#endif
extern void guestfs___free_inspect_info (guestfs_h *g);
extern void guestfs___free_drives (struct drive **drives);
-extern int guestfs___set_busy (guestfs_h *g);
-extern int guestfs___end_busy (guestfs_h *g);
extern int guestfs___send (guestfs_h *g, int proc_nr, uint64_t progress_hint, uint64_t optargs_bitmask, xdrproc_t xdrp, char *args);
extern int guestfs___recv (guestfs_h *g, const char *fn, struct guestfs_message_header *hdr, struct guestfs_message_error *err, xdrproc_t xdrp, char *ret);
extern int guestfs___recv_discard (guestfs_h *g, const char *fn);