summaryrefslogtreecommitdiffhomepage
path: root/src/nginext/nxt_go_process.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
committerMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
commit4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf (patch)
treec72ab253541c53dd918afc86973192416078fceb /src/nginext/nxt_go_process.h
parent5a43bd0bfd1eaa60dede7beb3206a53e8d008fa4 (diff)
downloadunit-4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf.tar.gz
unit-4a1b59c27a8e85fc3b03c420fbc1642ce52e96cf.tar.bz2
External Go app request processing.
Diffstat (limited to 'src/nginext/nxt_go_process.h')
-rw-r--r--src/nginext/nxt_go_process.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/nginext/nxt_go_process.h b/src/nginext/nxt_go_process.h
new file mode 100644
index 00000000..5e31fa6e
--- /dev/null
+++ b/src/nginext/nxt_go_process.h
@@ -0,0 +1,30 @@
+
+/*
+ * Copyright (C) Max Romanov
+ * Copyright (C) NGINX, Inc.
+ */
+
+#ifndef _NXT_GO_PROCESS_H_INCLUDED_
+#define _NXT_GO_PROCESS_H_INCLUDED_
+
+
+#include <nxt_main.h>
+#include "nxt_go_mutex.h"
+
+typedef struct nxt_go_process_s nxt_go_process_t;
+
+struct nxt_go_process_s {
+ nxt_pid_t pid;
+ nxt_go_mutex_t incoming_mutex;
+ nxt_array_t incoming; /* of nxt_port_mmap_t */
+ nxt_go_mutex_t outgoing_mutex;
+ nxt_array_t outgoing; /* of nxt_port_mmap_t */
+};
+
+nxt_go_process_t *nxt_go_get_process(nxt_pid_t pid);
+
+void nxt_go_new_incoming_mmap(nxt_pid_t pid, nxt_fd_t fd);
+
+
+#endif /* _NXT_GO_PROCESS_H_INCLUDED_ */
+