Skip to content
Snippets Groups Projects
Commit 4a256d0d authored by Ruigrok, Richard's avatar Ruigrok, Richard
Browse files

LIBRPC: Add support for LE

Includes msg size set to same value used in LE:
RPCROUTER_MSGSIZE_MAX (18432)
parent fde3ac73
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,15 @@
#include <stdio.h>
#define LOG_TAG "RPC"
#include <utils/Log.h>
//#include <utils/Log.h>
#define LOGE(x...)
#define LOGI(x) do { \
printf(x); \
} while(0)
#if 1
#define PRINT(x...) do { \
......
# sources and intermediate files are separated
vpath %.c $(SRCDIR)
CPPFLAGS += $(QCT_CPPFLAGS)
CPPFLAGS += -I$(SRCDIR)
#CPPFLAGS += -I$(SRCDIR)/rpc
#CFLAGS += $(QCT_CFLAGS)
# XXX muzzle warnings
CFLAGS += $(patsubst -Werror,,$(QCT_CFLAGS))
all: liblibrpc.so.$(LIBVER)
liblibrpc.so.$(LIBVER): svc.c svc_clnt_common.c xdr.c rpc.c ops.c clnt.c
$(CC) $(CPPFLAGS) $(CFLAGS) $(QCT_CFLAGS_SO) $(QCT_LDFLAGS_SO) -Wl,-soname,liblibrpc.so.$(LIBMAJOR) -o $@ $^
......@@ -50,4 +50,6 @@ extern "C" {
}
#endif
#define RPC_OFFSET (0)
#endif /* RPC_H */
......@@ -74,6 +74,16 @@ extern "C" {
#include <inttypes.h>
#include <string.h>
#include <pthread.h>
#include <malloc.h>
typedef char * caddr_t;
typedef char * laddr_t;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef int bool_t; /* This has to be a long, as it is used for XDR boolean too, which is a 4-byte value */
typedef unsigned long rpcprog_t;
......@@ -384,8 +394,8 @@ typedef struct xdr_ops_struct xdr_ops_s_type;
for servers.
===========================================================================*/
#define RPCROUTER_MSGSIZE_MAX (2048)
#define RPCROUTER_MSGSIZE_MAX (18432)
struct xdr_struct {
const xdr_ops_s_type *xops;
enum xdr_op x_op; /* used for ENCODE and DECODE */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment