mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
lib: Give values for each state in 'enum state'.
The values of CONFIG, LAUNCHING and READY and (kind of) exposed through the API so shouldn't change. Use a bad sentinel for NO_HANDLE since that indicates a serious error.
This commit is contained in:
@@ -90,7 +90,8 @@
|
||||
/* Guestfs handle and associated structures. */
|
||||
|
||||
/* State. */
|
||||
enum state { CONFIG, LAUNCHING, READY, NO_HANDLE };
|
||||
enum state { CONFIG = 0, LAUNCHING = 1, READY = 2,
|
||||
NO_HANDLE = 0xebadebad };
|
||||
|
||||
/* Attach method. */
|
||||
enum attach_method {
|
||||
|
||||
Reference in New Issue
Block a user