From 8e4d1ddfcd496a38aa5ea07b2d0d60f2833a98fa Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Thu, 19 Jan 2012 14:49:22 -0500 Subject: Add rpc processing infrastructure --- proxy/src/gp_utils.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'proxy/src/gp_utils.h') diff --git a/proxy/src/gp_utils.h b/proxy/src/gp_utils.h index fb77cd7..37ad602 100644 --- a/proxy/src/gp_utils.h +++ b/proxy/src/gp_utils.h @@ -96,4 +96,12 @@ void gp_workers_free(struct gp_workers *w); int gp_query_new(struct gp_workers *w, struct gp_conn *conn, uint8_t *buffer, size_t buflen); +/* max out at 1MB for now */ +#define MAX_RPC_SIZE 1024*1024 + +/* from gp_rpc.c */ +int gp_rpc_process_call(struct gssproxy_ctx *gpctx, + uint8_t *inbuf, size_t inlen, + uint8_t **outbuf, size_t *outlen); + #endif /* _SRV_UTILS_H_ */ -- cgit