Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-01-25 04:50:10 +0300
committerRyan Dahl <ry@tinyclouds.org>2011-01-25 05:59:06 +0300
commit068b733583a4f0781a8418ddf42f7912e3dd53a6 (patch)
tree7f9dd4ca422b06447db9f901cc11d9f7bca90423 /src/node_dtrace.h
parent91cc2d8c4bff5c5fbacd757f38b9a8c690dce131 (diff)
Land Cantrill's DTrace patch
only works on solaris
Diffstat (limited to 'src/node_dtrace.h')
-rw-r--r--src/node_dtrace.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/node_dtrace.h b/src/node_dtrace.h
new file mode 100644
index 00000000000..267c7292169
--- /dev/null
+++ b/src/node_dtrace.h
@@ -0,0 +1,28 @@
+#ifndef NODE_DTRACE_H_
+#define NODE_DTRACE_H_
+
+#include <node.h>
+#include <v8.h>
+
+extern "C" {
+
+typedef struct {
+ int32_t fd;
+ int32_t port;
+ char *remote;
+} node_dtrace_connection_t;
+
+typedef struct {
+ char *url;
+ char *method;
+} node_dtrace_http_request_t;
+
+}
+
+namespace node {
+
+void InitDTrace(v8::Handle<v8::Object> target);
+
+}
+
+#endif