From 10925e207a28635e207459c5b78581385c9dbe9e Mon Sep 17 00:00:00 2001 From: gennyble Date: Wed, 2 Apr 2025 06:53:54 -0500 Subject: remember to remove old ffi structs in corgi when using smalldog --- smalldog/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smalldog') diff --git a/smalldog/README.md b/smalldog/README.md index 87d3416..2505f5f 100644 --- a/smalldog/README.md +++ b/smalldog/README.md @@ -33,11 +33,11 @@ struct response { as well as that, there are two functions that corgi expects to exist and will call. -`struct response *handle(struct request*);` +`struct response *cgi_handle(struct request*);` this function is called after the module is loaded. here you should process the request and send back a response. be sure to keep track of any allocations so you can clean them up later. -`void cleanup(struct response*);` +`void cgi_cleanup(struct response*);` this is where you clean up, later. function is called after corgi copies all required data to an internal structure. free memory here. \ No newline at end of file -- cgit 1.4.1-3-g733a5