File: plugin.c

package info (click to toggle)
uwsgi 2.0.31-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,564 kB
  • sloc: ansic: 87,066; python: 7,004; cpp: 1,133; java: 708; perl: 678; sh: 585; ruby: 555; makefile: 148; xml: 130; cs: 121; objc: 37; php: 28; erlang: 20; javascript: 11
file content (38 lines) | stat: -rw-r--r-- 1,049 bytes parent folder | download | duplicates (8)
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
#include <uwsgi.h>

int uwsgi_v8_init(void);
void uwsgi_v8_apps(void);
void uwsgi_v8_configurator(char *, char **);
uint64_t uwsgi_v8_rpc(void *, uint8_t, char **, uint16_t *, char **);
int uwsgi_v8_signal_handler(uint8_t, void *);
void uwsgi_v8_init_thread(int);
void uwsgi_v8_enable_threads();
int uwsgi_v8_mule(char *);

static void uwsgi_v8_register(void) {
        uwsgi_register_configurator(".js", uwsgi_v8_configurator);
}

extern struct uwsgi_option uwsgi_v8_options[];

int uwsgi_v8_request(struct wsgi_request *);

static void uwsgi_v8_after_request(struct wsgi_request *wsgi_req) {
	log_request(wsgi_req);
}

struct uwsgi_plugin v8_plugin = {
	.name = "v8",
	.modifier1 = 24,
	.init = uwsgi_v8_init,
	.init_apps = uwsgi_v8_apps,
	.options = uwsgi_v8_options,
	.on_load = uwsgi_v8_register,
	.rpc = uwsgi_v8_rpc,
	.request = uwsgi_v8_request,
	.after_request = uwsgi_v8_after_request,
	.signal_handler = uwsgi_v8_signal_handler,
	.enable_threads = uwsgi_v8_enable_threads,
	.init_thread = uwsgi_v8_init_thread,
	.mule = uwsgi_v8_mule,
};