Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kehengzhong authored Feb 17, 2022
1 parent 901c70d commit 4993113
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions include/chunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ extern "C" {
typedef int FetchData (void * para, int64 offset, int64 lenght, void ** ppbyte, int64 * pbytelen);
typedef int GoAhead (void * para, int64 offset, int64 step);
typedef int FetchEnd (void * para, int status);
typedef void CKEFree (void * obj);

typedef int ProcessNotify (void * msg, void * para, uint64 cbval, int64 offset, int64 step);

Expand Down Expand Up @@ -50,6 +51,7 @@ typedef struct chunk_entity {
struct {
void * pbyte;
void * porig;
CKEFree * freefunc;
} bufptr;

struct {
Expand Down Expand Up @@ -193,9 +195,9 @@ int64 chunk_prepend_strip_buffer (void * vck, void * pbuf, int64 len, char * es
int64 chunk_add_strip_buffer (void * vck, void * pbuf, int64 len, char * escch, int chlen);
int64 chunk_append_strip_buffer (void * vck, void * pbuf, int64 len, char * escch, int chlen);

int chunk_prepend_bufptr (void * vck, void * pbuf, int64 len, uint8 isheader);
int chunk_add_bufptr (void * vck, void * pbuf, int64 len, void * porig);
int chunk_append_bufptr (void * vck, void * pbuf, int64 len, void * porig);
int chunk_prepend_bufptr (void * vck, void * pbuf, int64 len, void * porig, void * freefunc, uint8 isheader);
int chunk_add_bufptr (void * vck, void * pbuf, int64 len, void * porig, void * freefunc);
int chunk_append_bufptr (void * vck, void * pbuf, int64 len, void * porig, void * freefunc);

int chunk_remove_bufptr (void * vck, void * pbuf);
int chunk_bufptr_porig_find (void * vck, void * porig);
Expand Down
2 changes: 1 addition & 1 deletion include/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ int json_size (void * vobj);
int json_valuenum (void * vobj, void * key, int keylen);

int json_num (void * vobj);
int json_iter (void * vobj, int ind, void ** pkey, int * keylen, void ** pval, int * vallen, void ** pobj);
int json_iter (void * vobj, int ind, int valind, void ** pkey, int * keylen, void ** pval, int * vallen, void ** pobj);

/* "http.server.location[0].errpage.504" : "504.html" */
int json_mdel (void * vobj, void * key, int keylen);
Expand Down

0 comments on commit 4993113

Please sign in to comment.