summaryrefslogtreecommitdiff
path: root/main/SAPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/SAPI.h')
-rw-r--r--main/SAPI.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/SAPI.h b/main/SAPI.h
index 95d82a8747..0433cca55b 100644
--- a/main/SAPI.h
+++ b/main/SAPI.h
@@ -63,6 +63,7 @@ typedef struct {
char *post_data;
char *cookie_data;
uint content_length;
+ uint post_data_length;
char *path_translated;
char *request_uri;
@@ -118,8 +119,10 @@ SAPI_API void sapi_deactivate(SLS_D);
SAPI_API int sapi_add_header(char *header_line, uint header_line_len);
SAPI_API int sapi_send_headers();
+SAPI_API int sapi_register_post_readers(sapi_post_content_type_reader *post_content_type_readers);
SAPI_API int sapi_register_post_reader(sapi_post_content_type_reader *post_content_type_reader);
SAPI_API void sapi_unregister_post_reader(sapi_post_content_type_reader *post_content_type_reader);
+SAPI_API int sapi_register_default_post_reader(void (*default_post_reader)(char *content_type_dup SLS_DC));
struct _sapi_module_struct {
char *name;
@@ -137,6 +140,8 @@ struct _sapi_module_struct {
int (*read_post)(char *buffer, uint count_bytes SLS_DC);
char *(*read_cookies)(SLS_D);
+
+ void (*default_post_reader)(char *content_type_dup SLS_DC);
};
@@ -157,4 +162,6 @@ struct _sapi_module_struct {
SAPI_POST_READER_FUNC(sapi_read_standard_form_data);
+#define STANDARD_SAPI_MODULE_PROPERTIES NULL
+
#endif /* _NEW_SAPI_H */