22 #ifndef FREERDP_LIB_CORE_STATE_H
23 #define FREERDP_LIB_CORE_STATE_H
25 #include <winpr/wtypes.h>
26 #include <freerdp/api.h>
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
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,