Node.js  v8.x
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine
node_lttng.h
Go to the documentation of this file.
1 #ifndef SRC_NODE_LTTNG_H_
2 #define SRC_NODE_LTTNG_H_
3 
4 #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5 
6 #include "node.h"
7 #include "v8.h"
8 #include "env.h"
9 
10 extern "C" {
11 typedef struct {
12  int32_t fd;
13  int32_t port;
14  const char* remote;
15  int32_t buffered;
16 } node_lttng_connection_t;
17 
18 typedef struct {
19  const char* url;
20  const char* method;
21 } node_lttng_http_client_request_t;
22 
23 typedef struct {
24  union {
25  uint32_t version;
26  uintptr_t unused; /* for compat. with old 64-bit struct */
27  } _un;
28  const char* url;
29  const char* method;
30  const char* forwarded_for;
31  const char* _pad[8];
32 } node_lttng_http_server_request_t;
33 
34 } // extern "C"
35 
36 namespace node {
37 
38 void InitLTTNG(Environment* env, v8::Local<v8::Object> target);
39 
40 } // namespace node
41 
42 #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
43 
44 #endif // SRC_NODE_LTTNG_H_
void InitLTTNG(Environment *env, Local< Object > target)
Definition: node_lttng.cc:234
method
Definition: node.d:195