Skip to content

Commit 0512b38

Browse files
committed
add the remaining useful symbols to the export
1 parent 1411ca5 commit 0512b38

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

main/fastcgi.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -347,12 +347,12 @@ static void fcgi_setup_signals(void)
347347
}
348348
#endif
349349

350-
void fcgi_set_in_shutdown(int new_value)
350+
FCGI_API void fcgi_set_in_shutdown(int new_value)
351351
{
352352
in_shutdown = new_value;
353353
}
354354

355-
int fcgi_in_shutdown(void)
355+
FCGI_API int fcgi_in_shutdown(void)
356356
{
357357
return in_shutdown;
358358
}
@@ -376,7 +376,7 @@ void __attribute__((weak)) fcgi_log(int type, const char *format, ...) {
376376
}
377377
#endif
378378

379-
int fcgi_init(void)
379+
FCGI_API int fcgi_init(void)
380380
{
381381
if (!is_initialized) {
382382
#ifndef _WIN32
@@ -723,7 +723,7 @@ FCGI_API int fcgi_listen(const char *path, int backlog)
723723
return listen_socket;
724724
}
725725

726-
void fcgi_set_allowed_clients(char *ip)
726+
FCGI_API void fcgi_set_allowed_clients(char *ip)
727727
{
728728
char *cur, *end;
729729
int n;
@@ -1146,7 +1146,7 @@ FCGI_API int fcgi_read(fcgi_request *req, char *str, int len)
11461146
return n;
11471147
}
11481148

1149-
void fcgi_close(fcgi_request *req, int force, int destroy)
1149+
FCGI_API void fcgi_close(fcgi_request *req, int force, int destroy)
11501150
{
11511151
if (destroy && req->has_env) {
11521152
fcgi_hash_clean(&req->env);
@@ -1199,7 +1199,7 @@ void fcgi_close(fcgi_request *req, int force, int destroy)
11991199
}
12001200
}
12011201

1202-
int fcgi_is_closed(fcgi_request *req)
1202+
FCGI_API int fcgi_is_closed(fcgi_request *req)
12031203
{
12041204
return (req->fd < 0);
12051205
}
@@ -1609,19 +1609,19 @@ FCGI_API void fcgi_impersonate(void)
16091609
}
16101610
#endif
16111611

1612-
void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, size_t value_len)
1612+
FCGI_API void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, size_t value_len)
16131613
{
16141614
zval zvalue;
16151615
ZVAL_NEW_STR(&zvalue, zend_string_init(value, value_len, 1));
16161616
zend_hash_str_add(&fcgi_mgmt_vars, name, name_len, &zvalue);
16171617
}
16181618

1619-
void fcgi_free_mgmt_var_cb(zval *zv)
1619+
FCGI_API void fcgi_free_mgmt_var_cb(zval *zv)
16201620
{
16211621
pefree(Z_STR_P(zv), 1);
16221622
}
16231623

1624-
const char *fcgi_get_last_client_ip()
1624+
FCGI_API const char *fcgi_get_last_client_ip()
16251625
{
16261626
static char str[INET6_ADDRSTRLEN];
16271627

main/fastcgi.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -196,21 +196,21 @@ struct _fcgi_request {
196196
fcgi_hash env;
197197
};
198198

199-
int fcgi_init(void);
199+
FCGI_API int fcgi_init(void);
200200
FCGI_API void fcgi_shutdown(void);
201201
FCGI_API int fcgi_is_fastcgi(void);
202-
int fcgi_is_closed(fcgi_request *req);
203-
void fcgi_close(fcgi_request *req, int force, int destroy);
204-
int fcgi_in_shutdown(void);
202+
FCGI_API int fcgi_is_closed(fcgi_request *req);
203+
FCGI_API void fcgi_close(fcgi_request *req, int force, int destroy);
204+
FCGI_API int fcgi_in_shutdown(void);
205205
FCGI_API void fcgi_terminate(void);
206206
FCGI_API int fcgi_listen(const char *path, int backlog);
207207
FCGI_API fcgi_request* fcgi_init_request(fcgi_request *request, int listen_socket);
208208
FCGI_API void fcgi_destroy_request(fcgi_request *req);
209-
void fcgi_set_allowed_clients(char *ip);
209+
FCGI_API void fcgi_set_allowed_clients(char *ip);
210210
FCGI_API int fcgi_accept_request(fcgi_request *req);
211211
FCGI_API int fcgi_finish_request(fcgi_request *req, int force_close);
212-
const char *fcgi_get_last_client_ip();
213-
void fcgi_set_in_shutdown(int new_value);
212+
FCGI_API const char *fcgi_get_last_client_ip();
213+
FCGI_API void fcgi_set_in_shutdown(int new_value);
214214

215215
#ifndef HAVE_ATTRIBUTE_WEAK
216216
typedef void (*fcgi_logger)(int type, const char *fmt, ...);
@@ -232,8 +232,8 @@ FCGI_API int fcgi_flush(fcgi_request *req, int close);
232232
FCGI_API void fcgi_impersonate(void);
233233
#endif
234234

235-
void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, size_t value_len);
236-
void fcgi_free_mgmt_var_cb(zval *zv);
235+
FCGI_API void fcgi_set_mgmt_var(const char * name, size_t name_len, const char * value, size_t value_len);
236+
FCGI_API void fcgi_free_mgmt_var_cb(zval *zv);
237237

238238
/*
239239
* Local variables:

0 commit comments

Comments
 (0)