nicer formatting
[tridge/junkcode.git] / paste.c
1 #define NDR_RQST_FUNCTION(name) \
2 int #name(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep) \
3 { \
4         struct pidl_pull *ndr = pidl_pull_init(tvb, offset, pinfo, drep); \
5         struct #name *r = talloc_p(NULL, struct #name); \
6         pidl_tree ptree; \
7         ptree.proto_tree = tree; \
8         ptree.subtree_list = NULL; \
9         ndr_pull_#name(ndr, NDR_IN, &ptree, r); \
10         return ndr->offset; \
11 }