[Feature][ZXW-65]merged P49 base code
Change-Id: I3e09c0c3d47483bc645f02310380ecb7fc6f4041
diff --git a/ap/app/zte_comm/nvserver/sc_rpc.h b/ap/app/zte_comm/nvserver/sc_rpc.h
index e49be97..ebf88c2 100755
--- a/ap/app/zte_comm/nvserver/sc_rpc.h
+++ b/ap/app/zte_comm/nvserver/sc_rpc.h
@@ -30,17 +30,26 @@
{
unsigned int msg_type;
unsigned int func_id;
+ unsigned int file_len;
+ unsigned int key_len;
+ unsigned int value_len;
unsigned int data_len;
- char data[4096];
+
} T_sc_rpc_header;
+typedef struct
+{
+ T_sc_rpc_header header;
+ char data[3072];
+} T_sc_rpc_msg;
+
int sc_rpc_open(const char *rpmsg_dev);
int sc_rpc_clear(int fd);
-int sc_rpc_send(int fd, T_sc_rpc_header *data, unsigned int flag);
+int sc_rpc_send(int fd, T_sc_rpc_msg *data, unsigned int flag);
-int sc_rpc_recv(int fd, T_sc_rpc_header *data, unsigned int timeout);
+int sc_rpc_recv(int fd, T_sc_rpc_msg *data, unsigned int timeout);
int sc_rpc_close(int fd);