+struct dispatch {
+ int (*data_send)(struct client *cl, const char *data, int len);
+ void (*data_done)(struct client *cl);
+ void (*write_cb)(struct client *cl);
+ void (*close_fds)(struct client *cl);
+ void (*free)(struct client *cl);
+ bool data_blocked;
+
+ union {
+ struct {
+ struct blob_attr **hdr;
+ int fd;
+ } file;
+ struct dispatch_proc proc;
+ };
+};
+