FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-api-headers/include/node_api_types.h at main · nodejs/node-api-headers · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodejs
/
node-api-headers
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
13
Star
42
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
node-api-headers
/
include
/
node_api_types.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (47 loc) · 1.88 KB
Breadcrumbs
node-api-headers
/
include
/
node_api_types.h
Copy path
File metadata and controls
58 lines (47 loc) · 1.88 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef
SRC_NODE_API_TYPES_H_
#define
SRC_NODE_API_TYPES_H_
#include
"js_native_api_types.h"
typedef
napi_value
(
NAPI_CDECL
*
napi_addon_register_func
)(
napi_env
env
,
napi_value
exports
);
// False positive: https://github.com/cpplint/cpplint/issues/409
// NOLINTNEXTLINE (readability/casting)
typedef
int32_t
(
NAPI_CDECL
*
node_api_addon_get_api_version_func
)(
void
);
typedef
struct
napi_callback_scope__
*
napi_callback_scope
;
typedef
struct
napi_async_context__
*
napi_async_context
;
typedef
struct
napi_async_work__
*
napi_async_work
;
#if
NAPI_VERSION
>=
3
typedef
void
(
NAPI_CDECL
*
napi_cleanup_hook
)(
void
*
arg
);
#endif
// NAPI_VERSION >= 3
#if
NAPI_VERSION
>=
4
typedef
struct
napi_threadsafe_function__
*
napi_threadsafe_function
;
#endif
// NAPI_VERSION >= 4
#if
NAPI_VERSION
>=
4
typedef
enum
{
napi_tsfn_release
,
napi_tsfn_abort
}
napi_threadsafe_function_release_mode
;
typedef
enum
{
napi_tsfn_nonblocking
,
napi_tsfn_blocking
}
napi_threadsafe_function_call_mode
;
#endif
// NAPI_VERSION >= 4
typedef
void
(
NAPI_CDECL
*
napi_async_execute_callback
)(
napi_env
env
,
void
*
data
);
typedef
void
(
NAPI_CDECL
*
napi_async_complete_callback
)(
napi_env
env
,
napi_status
status
,
void
*
data
);
#if
NAPI_VERSION
>=
4
typedef
void
(
NAPI_CDECL
*
napi_threadsafe_function_call_js
)(
napi_env
env
,
napi_value
js_callback
,
void
*
context
,
void
*
data
);
#endif
// NAPI_VERSION >= 4
typedef
struct
{
uint32_t
major
;
uint32_t
minor
;
uint32_t
patch
;
const
char
*
release
;
}
napi_node_version
;
#if
NAPI_VERSION
>=
8
typedef
struct
napi_async_cleanup_hook_handle__
*
napi_async_cleanup_hook_handle
;
typedef
void
(
NAPI_CDECL
*
napi_async_cleanup_hook
)(
napi_async_cleanup_hook_handle
handle
,
void
*
data
);
#endif
// NAPI_VERSION >= 8
#endif
// SRC_NODE_API_TYPES_H_
Back
|
FazBrowse Home
|
New Git URL