aboutsummaryrefslogtreecommitdiff
path: root/fastcgi.h
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2009-11-11 21:14:53 +0100
committerStefan Bühler <stbuehler@web.de>2009-11-11 21:14:53 +0100
commitac4f2ff612455478972ed89f06b8f6fc6dce92e1 (patch)
treeb04dc0aca3895cf9e952b8647f8ae6e57950aca0 /fastcgi.h
parent04dbbb6470f6a04714a3d4b80939b32c2849892e (diff)
downloadfcgi-cgi-ac4f2ff612455478972ed89f06b8f6fc6dce92e1.tar.gz
fcgi-cgi-ac4f2ff612455478972ed89f06b8f6fc6dce92e1.zip
Replace GString with GByteArray
Diffstat (limited to 'fastcgi.h')
-rw-r--r--fastcgi.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/fastcgi.h b/fastcgi.h
index a1851bd..1aa9e86 100644
--- a/fastcgi.h
+++ b/fastcgi.h
@@ -82,8 +82,8 @@ struct fastcgi_callbacks {
void (*cb_new_connection)(fastcgi_connection *fcon); /* new connection accepted */
void (*cb_new_request)(fastcgi_connection *fcon); /* new request on connection, env/params are ready */
void (*cb_wrote_data)(fastcgi_connection *fcon);
- void (*cb_received_stdin)(fastcgi_connection *fcon, GString *data); /* data == NULL => eof */
- void (*cb_received_data)(fastcgi_connection *fcon, GString *data); /* data == NULL => eof */
+ void (*cb_received_stdin)(fastcgi_connection *fcon, GByteArray *data); /* data == NULL => eof */
+ void (*cb_received_data)(fastcgi_connection *fcon, GByteArray *data); /* data == NULL => eof */
void (*cb_request_aborted)(fastcgi_connection *fcon);
void (*cb_reset_connection)(fastcgi_connection *fcon); /* cleanup custom data before fcon is freed, not for keep-alive */
};
@@ -127,7 +127,7 @@ struct fastcgi_connection {
guint content_remaining, padding_remaining;
- GString *buffer, *parambuf;
+ GByteArray *buffer, *parambuf;
gint fd;
ev_io fd_watcher;
@@ -148,6 +148,8 @@ void fastcgi_resume_read(fastcgi_connection *fcon);
void fastcgi_end_request(fastcgi_connection *fcon, gint32 appStatus, enum FCGI_ProtocolStatus status);
void fastcgi_send_out(fastcgi_connection *fcon, GString *data);
void fastcgi_send_err(fastcgi_connection *fcon, GString *data);
+void fastcgi_send_out_bytearray(fastcgi_connection *fcon, GByteArray *data);
+void fastcgi_send_err_bytearray(fastcgi_connection *fcon, GByteArray *data);
void fastcgi_connection_close(fastcgi_connection *fcon); /* shouldn't be needed */