-
This commit is contained in:
@@ -13,9 +13,13 @@ typedef DWORD thread_id_t;
|
||||
#define USE_WIN_THREADS
|
||||
#endif
|
||||
|
||||
#ifdef _linux
|
||||
#define USE_PTHREADS
|
||||
#ifdef __linux
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
typedef pthread_t thread_t;
|
||||
typedef pthread_mutex_t mutex_t;
|
||||
typedef int thread_id_t;
|
||||
#define USE_PTHREADS
|
||||
#endif
|
||||
|
||||
#define CONTEXT_INVALID 0
|
||||
@@ -38,11 +42,17 @@ typedef enum {
|
||||
typedef enum {
|
||||
reason_no_result_yet = -1,
|
||||
reason_oke = 0,
|
||||
reason_set_html_failed,
|
||||
reason_set_navigate_failed,
|
||||
reason_eval_js_failed,
|
||||
reason_no_devtools_on_platform,
|
||||
reason_no_delegate_for_context
|
||||
reason_set_html_failed = 1,
|
||||
reason_set_navigate_failed = 2,
|
||||
reason_eval_js_failed = 3,
|
||||
reason_no_devtools_on_platform = 4,
|
||||
reason_no_delegate_for_context = 5,
|
||||
reason_webview_missing_dependency = 6,
|
||||
reason_webview_canceled = 7,
|
||||
reason_webview_invalid_state = 8,
|
||||
reason_webview_invalid_argument = 9,
|
||||
reason_webview_unspecified = 10,
|
||||
reason_webview_dispatch_failed = 11
|
||||
} reason_t;
|
||||
|
||||
typedef struct {
|
||||
|
||||
Reference in New Issue
Block a user