0
@@ -58,7 +58,7 @@ static void detach_idle_watcher()
0
-
void request_cb(ebb_client *client, void *data)
0
+
static void request_cb(ebb_client *client, void *data)
0
VALUE rb_client = Data_Wrap_Struct(cClient, 0, 0, client);
0
@@ -71,21 +71,21 @@ void request_cb(ebb_client *client, void *data)
0
-
VALUE server_listen_on_fd(VALUE _, VALUE sfd)
0
+
static VALUE server_listen_on_fd(VALUE _, VALUE sfd)
0
if(ebb_server_listen_on_fd(server, FIX2INT(sfd)) < 0)
0
rb_sys_fail("Problem listening on FD");
0
-
VALUE server_listen_on_port(VALUE _, VALUE port)
0
+
static VALUE server_listen_on_port(VALUE _, VALUE port)
0
if(ebb_server_listen_on_port(server, FIX2INT(port)) < 0)
0
rb_sys_fail("Problem listening on port");
0
-
VALUE server_listen_on_unix_socket(VALUE _, VALUE socketfile)
0
+
static VALUE server_listen_on_unix_socket(VALUE _, VALUE socketfile)
0
if(ebb_server_listen_on_unix_socket(server, StringValuePtr(socketfile)) < 0)
0
rb_sys_fail("Problem listening on unix socket");
0
@@ -132,7 +132,7 @@ idle_cb (struct ev_loop *loop, struct ev_idle *w, int revents) {
0
-
VALUE server_process_connections(VALUE _)
0
+
static VALUE server_process_connections(VALUE _)
0
ev_loop(loop, EVLOOP_ONESHOT);
0
@@ -141,23 +141,23 @@ VALUE server_process_connections(VALUE _)
0
-
VALUE server_unlisten(VALUE _)
0
+
static VALUE server_unlisten(VALUE _)
0
ebb_server_unlisten(server);
0
-
VALUE server_open(VALUE _)
0
+
static VALUE server_open(VALUE _)
0
return server->open ? Qtrue : Qfalse;
0
-
VALUE server_waiting_clients(VALUE _)
0
+
static VALUE server_waiting_clients(VALUE _)
0
return waiting_clients;
0
-
VALUE env_field(struct ebb_env_item *item)
0
+
static VALUE env_field(struct ebb_env_item *item)
0
VALUE f = rb_str_new(NULL, RSTRING_LEN(global_http_prefix) + item->field_length);
0
@@ -188,7 +188,7 @@ VALUE env_field(struct ebb_env_item *item)
0
-
VALUE env_value(struct ebb_env_item *item)
0
+
static VALUE env_value(struct ebb_env_item *item)
0
if(item->value_length > 0)
0
return rb_str_new(item->value, item->value_length);
0
@@ -197,7 +197,7 @@ VALUE env_value(struct ebb_env_item *item)
0
-
VALUE client_env(VALUE _, VALUE rb_client)
0
+
static VALUE client_env(VALUE _, VALUE rb_client)
0
VALUE field, value, env = rb_hash_new();
0
@@ -220,7 +220,7 @@ VALUE client_env(VALUE _, VALUE rb_client)
0
-
VALUE client_write_status(VALUE _, VALUE client, VALUE status, VALUE reason_phrase)
0
+
static VALUE client_write_status(VALUE _, VALUE client, VALUE status, VALUE reason_phrase)
0
Data_Get_Struct(client, ebb_client, _client);
0
@@ -228,7 +228,7 @@ VALUE client_write_status(VALUE _, VALUE client, VALUE status, VALUE reason_phra
0
-
VALUE client_write_header(VALUE _, VALUE client, VALUE field, VALUE value)
0
+
static VALUE client_write_header(VALUE _, VALUE client, VALUE field, VALUE value)
0
Data_Get_Struct(client, ebb_client, _client);
0
@@ -236,7 +236,7 @@ VALUE client_write_header(VALUE _, VALUE client, VALUE field, VALUE value)
0
-
VALUE client_write_body(VALUE _, VALUE client, VALUE string)
0
+
static VALUE client_write_body(VALUE _, VALUE client, VALUE string)
0
Data_Get_Struct(client, ebb_client, _client);
0
@@ -245,7 +245,7 @@ VALUE client_write_body(VALUE _, VALUE client, VALUE string)
0
-
VALUE client_release(VALUE _, VALUE rb_client)
0
+
static VALUE client_release(VALUE _, VALUE rb_client)
0
Data_Get_Struct(rb_client, ebb_client, client);
Comments
No one has commented yet.