FreeRDP
state.h
1 
22 #ifndef FREERDP_LIB_CORE_STATE_H
23 #define FREERDP_LIB_CORE_STATE_H
24 
25 #include <winpr/wtypes.h>
26 #include <freerdp/api.h>
27 
28 typedef enum
29 {
30  STATE_RUN_ACTIVE = 2,
31  STATE_RUN_REDIRECT = 1,
32  STATE_RUN_SUCCESS = 0,
33  STATE_RUN_FAILED = -1,
34  STATE_RUN_QUIT_SESSION = -2,
35  STATE_RUN_TRY_AGAIN = -23,
36  STATE_RUN_CONTINUE = -24
37 } state_run_t;
38 
39 FREERDP_LOCAL BOOL state_run_failed(state_run_t status);
40 FREERDP_LOCAL BOOL state_run_success(state_run_t status);
41 FREERDP_LOCAL BOOL state_run_continue(state_run_t status);
42 FREERDP_LOCAL const char* state_run_result_string(state_run_t status, char* buffer,
43  size_t buffersize);
44 
45 #endif /* FREERDP_LIB_CORE_STATE_H */