summaryrefslogtreecommitdiff
path: root/nbrpc.h
diff options
context:
space:
mode:
Diffstat (limited to 'nbrpc.h')
-rw-r--r--nbrpc.h31
1 files changed, 0 insertions, 31 deletions
diff --git a/nbrpc.h b/nbrpc.h
deleted file mode 100644
index 2c7b479..0000000
--- a/nbrpc.h
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef __AGNI_NBRPC_H
-#define __AGNI_NBRPC_H
-
-#include <netbytes.h>
-
-#include "mq_ntf.h"
-
-typedef struct rpc_request
-{
- char *method;
- char *params;
- int id;
-} rpc_request;
-
-typedef struct rpc_response
-{
- char *result;
- char *error;
- int id;
-} rpc_response;
-
-rpc_request* rpc_req_new(char *method, char *params, int id);
-rpc_response* rpc_resp_new(char *result, char *error, int id);
-int rpc_req_free(rpc_request *req);
-int rpc_resp_free(rpc_response *resp);
-int rpc_req_marsh( rpc_request *req, netbyte_store **nb_req);
-int rpc_resp_marsh( rpc_response *resp, netbyte_store **nb_resp);
-int rpc_req_unmarsh( netbyte_store *nb_req, rpc_request **req);
-int rpc_resp_unmarsh(netbyte_store *nb_resp, rpc_response **resp);
-
-#endif \ No newline at end of file