Files
archived-frankenphp/frankenphp.h
Kévin Dunglas 84273ec395 fix: fix thread safety issues (#5)
* fix: fix thread safety issues

* some improvements

* wip

* tiny improvements
2022-06-03 17:18:07 +02:00

32 lines
731 B
C

#ifndef _FRANKENPPHP_H
#define _FRANKENPPHP_H
#include <stdint.h>
int frankenphp_check_version();
int frankenphp_init();
void frankenphp_shutdown();
int frankenphp_create_server_context(uintptr_t requests_chan, char *worker_filename);
void frankenphp_update_server_context(
uintptr_t request,
const char *request_method,
char *query_string,
int64_t content_length,
char *path_translated,
char *request_uri,
const char *content_type,
char *auth_user,
char *auth_password,
int proto_num
);
int frankenphp_worker_reset_server_context();
uintptr_t frankenphp_clean_server_context();
int frankenphp_request_startup();
int frankenphp_execute_script(const char *file_name);
uintptr_t frankenphp_request_shutdown();
#endif