projects
/
project
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
991c32d
)
add plugin op for uh_chunk_printf
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 07:40:46 +0000
(08:40 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Jan 2013 07:40:46 +0000
(08:40 +0100)
plugin.c
patch
|
blob
|
history
plugin.h
patch
|
blob
|
history
diff --git
a/plugin.c
b/plugin.c
index
56e049c
..
9081163
100644
(file)
--- a/
plugin.c
+++ b/
plugin.c
@@
-32,6
+32,7
@@
static const struct uhttpd_ops ops = {
.client_error = uh_client_error,
.request_done = uh_request_done,
.chunk_write = uh_chunk_write,
.client_error = uh_client_error,
.request_done = uh_request_done,
.chunk_write = uh_chunk_write,
+ .chunk_printf = uh_chunk_printf,
.urlencode = uh_urlencode,
.urldecode = uh_urldecode,
};
.urlencode = uh_urlencode,
.urldecode = uh_urldecode,
};
diff --git
a/plugin.h
b/plugin.h
index
3a2b2ea
..
dcd8715
100644
(file)
--- a/
plugin.h
+++ b/
plugin.h
@@
-31,6
+31,7
@@
struct uhttpd_ops {
void (*client_error)(struct client *cl, int code, const char *summary, const char *fmt, ...);
void (*request_done)(struct client *cl);
void (*chunk_write)(struct client *cl, const void *data, int len);
void (*client_error)(struct client *cl, int code, const char *summary, const char *fmt, ...);
void (*request_done)(struct client *cl);
void (*chunk_write)(struct client *cl, const void *data, int len);
+ void (*chunk_printf)(struct client *cl, const char *format, ...);
int (*urlencode)(char *buf, int blen, const char *src, int slen);
int (*urldecode)(char *buf, int blen, const char *src, int slen);
int (*urlencode)(char *buf, int blen, const char *src, int slen);
int (*urldecode)(char *buf, int blen, const char *src, int slen);