Revision dabec8ad xseg/peers/user/peer.h
b/xseg/peers/user/peer.h | ||
---|---|---|
61 | 61 |
return (struct peerd *) ((unsigned long) custom_peerd - offsetof(struct peerd, priv)); |
62 | 62 |
} |
63 | 63 |
|
64 |
|
|
65 |
/* decration of "common" variables */ |
|
66 |
extern struct log_ctx lc; |
|
67 |
#ifdef ST_THREADS |
|
68 |
extern uint32_t ta; |
|
69 |
#endif |
|
70 |
|
|
71 |
|
|
64 | 72 |
/******************************** |
65 | 73 |
* mandatory peer functions * |
66 | 74 |
********************************/ |
... | ... | |
69 | 77 |
int custom_peer_init(struct peerd *peer, int argc, char *argv[]); |
70 | 78 |
|
71 | 79 |
/* dispatch function */ |
72 |
int dispatch(struct peerd *peer, struct peer_req *pr, struct xseg_request *xseg,
|
|
80 |
int dispatch(struct peerd *peer, struct peer_req *pr, struct xseg_request *req,
|
|
73 | 81 |
enum dispatch_reason reason); |
74 | 82 |
|
75 | 83 |
void usage(); |
Also available in: Unified diff