aboutsummaryrefslogtreecommitdiffstats
path: root/nbrpc_call.h
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2017-09-30 22:51:45 +0100
committerFreeArtMan <dos21h@gmail.com>2017-09-30 22:51:45 +0100
commit512f057166af84c11fc7ed5e4768b9dd2fe9f590 (patch)
treebe57349725502ad9ef14d70a4e32ff3ffb2bea94 /nbrpc_call.h
parent8c97104aa6fac4a7ed54d97bbcb1aed5e2398713 (diff)
downloadagni-512f057166af84c11fc7ed5e4768b9dd2fe9f590.tar.gz
agni-512f057166af84c11fc7ed5e4768b9dd2fe9f590.zip
comand rpc sends/recieves packets woohoo
Diffstat (limited to 'nbrpc_call.h')
-rw-r--r--nbrpc_call.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/nbrpc_call.h b/nbrpc_call.h
index 183f911..3d7ea9a 100644
--- a/nbrpc_call.h
+++ b/nbrpc_call.h
@@ -5,24 +5,31 @@
#include <mq_ntf.h>
+#include "mmm.h"
+
typedef struct rpc_call_request
{
+ //rpc
char *method;
char *params;
+ int id;
+ //extra params
char *user;
char *mask;
char *server;
- int id;
+
} rpc_call_request;
typedef struct rpc_call_response
{
+ //rpc
char *result;
char *error;
+ int id;
+ //extra params
char *user;
char *mask;
char *server;
- int id;
} rpc_call_response;
rpc_call_request* rpc_call_req_new(char *method, char *params, int id);