Where Online Learning is simpler!
The C and C++ Include Header Files
/usr/include/node/node_api_types.h
$ cat -n /usr/include/node/node_api_types.h 1 #ifndef SRC_NODE_API_TYPES_H_ 2 #define SRC_NODE_API_TYPES_H_ 3 4 #include "js_native_api_types.h" 5 6 typedef struct napi_callback_scope__* napi_callback_scope; 7 typedef struct napi_async_context__* napi_async_context; 8 typedef struct napi_async_work__* napi_async_work; 9 10 #if NAPI_VERSION >= 3 11 typedef void(NAPI_CDECL* napi_cleanup_hook)(void* arg); 12 #endif // NAPI_VERSION >= 3 13 14 #if NAPI_VERSION >= 4 15 typedef struct napi_threadsafe_function__* napi_threadsafe_function; 16 #endif // NAPI_VERSION >= 4 17 18 #if NAPI_VERSION >= 4 19 typedef enum { 20 napi_tsfn_release, 21 napi_tsfn_abort 22 } napi_threadsafe_function_release_mode; 23 24 typedef enum { 25 napi_tsfn_nonblocking, 26 napi_tsfn_blocking 27 } napi_threadsafe_function_call_mode; 28 #endif // NAPI_VERSION >= 4 29 30 typedef void(NAPI_CDECL* napi_async_execute_callback)(napi_env env, void* data); 31 typedef void(NAPI_CDECL* napi_async_complete_callback)(napi_env env, 32 napi_status status, 33 void* data); 34 #if NAPI_VERSION >= 4 35 typedef void(NAPI_CDECL* napi_threadsafe_function_call_js)( 36 napi_env env, napi_value js_callback, void* context, void* data); 37 #endif // NAPI_VERSION >= 4 38 39 typedef struct { 40 uint32_t major; 41 uint32_t minor; 42 uint32_t patch; 43 const char* release; 44 } napi_node_version; 45 46 #if NAPI_VERSION >= 8 47 typedef struct napi_async_cleanup_hook_handle__* napi_async_cleanup_hook_handle; 48 typedef void(NAPI_CDECL* napi_async_cleanup_hook)( 49 napi_async_cleanup_hook_handle handle, void* data); 50 #endif // NAPI_VERSION >= 8 51 52 #endif // SRC_NODE_API_TYPES_H_
Contact us
|
About us
|
Term of use
|
Copyright © 2000-2025 MyWebUniversity.com ™