summaryrefslogtreecommitdiff
path: root/uhttpd.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-31 19:29:44 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-31 19:29:44 +0100
commit38801a320d3f10de1f8ebfffd8964a1ad6d511f4 (patch)
tree22fa0a21e55677b57f477e001c549fd3b506adf4 /uhttpd.h
parent1fc5ad7f4fa30abc636680acd5e170198dfb6c32 (diff)
downloaduhttpd2-38801a320d3f10de1f8ebfffd8964a1ad6d511f4.tar.gz
move dispatch cbs and data to one place
Diffstat (limited to 'uhttpd.h')
-rw-r--r--uhttpd.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/uhttpd.h b/uhttpd.h
index 02d2705..a465a3d 100644
--- a/uhttpd.h
+++ b/uhttpd.h
@@ -118,16 +118,17 @@ struct client {
struct blob_buf hdr;
- void (*dispatch_write_cb)(struct client *cl);
- void (*dispatch_close_fds)(struct client *cl);
- void (*dispatch_free)(struct client *cl);
-
- union {
- struct {
- struct blob_attr **hdr;
- int fd;
- } file;
- } data;
+ struct {
+ void (*write_cb)(struct client *cl);
+ void (*close_fds)(struct client *cl);
+ void (*free)(struct client *cl);
+ union {
+ struct {
+ struct blob_attr **hdr;
+ int fd;
+ } file;
+ };
+ } dispatch;
};
extern int n_clients;