-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Expand file tree
/
Copy pathnode_embed_api.h
More file actions
28 lines (22 loc) · 843 Bytes
/
node_embed_api.h
File metadata and controls
28 lines (22 loc) · 843 Bytes
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
//
// Description: C-based API for embedding Node.js.
//
// !!! WARNING !!! WARNING !!! WARNING !!!
// This is a new API and is subject to change.
// While it is C-based, it is not ABI safe yet.
// Consider all functions and data structures as experimental.
// !!! WARNING !!! WARNING !!! WARNING !!!
//
// This file contains the C-based API for embedding Node.js in a host
// application. The API is designed to be used by applications that want to
// embed Node.js as a shared library (.so or .dll) and can interop with
// C-based API.
//
#ifndef SRC_NODE_EMBED_API_H_
#define SRC_NODE_EMBED_API_H_
#include "node_api.h"
EXTERN_C_START
// Runs Node.js start function. It is the same as running Node.js from CLI.
NAPI_EXTERN int32_t NAPI_CDECL node_embed_start(int32_t argc, char* argv[]);
EXTERN_C_END
#endif // SRC_NODE_EMBED_API_H_