Browse code

jsonrpc modules: removed - (dash) from json rpc modules

- jsonrpc-c is now jsonrpcc
- jsonrpc-s is now jsonrpcs
- janssonrpc-s is now janssonrpcs

Daniel-Constantin Mierla authored on 12/12/2016 20:53:19
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,62 @@
1
+/**
2
+ * Copyright (C) 2013 Flowroute LLC (flowroute.com)
3
+ *
4
+ * This file is part of Kamailio, a free SIP server.
5
+ *
6
+ * This file is free software; you can redistribute it and/or modify
7
+ * it under the terms of the GNU General Public License as published by
8
+ * the Free Software Foundation; either version 2 of the License, or
9
+ * (at your option) any later version
10
+ *
11
+ *
12
+ * This file is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
+ * GNU General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU General Public License
18
+ * along with this program; if not, write to the Free Software
19
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
+ *
21
+ */
22
+
23
+#ifndef _JANSSONRPC_FUNCS_H_
24
+#define _JANSSONRPC_FUNCS_H_
25
+
26
+#include <stdbool.h>
27
+#include "../../core/parser/msg_parser.h"
28
+
29
+int jsonrpc_request(struct sip_msg* _m,
30
+		char* _conn,
31
+		char* _method,
32
+		char* _params,
33
+		char* _options);
34
+
35
+int jsonrpc_notification(struct sip_msg* msg,
36
+		char* conn,
37
+		char* method,
38
+		char* params);
39
+
40
+int mod_jsonrpc_request(
41
+		struct sip_msg* msg,
42
+		str conn,
43
+		str method,
44
+		str params,
45
+		str route,
46
+		bool notify_only,
47
+		int retry,
48
+		unsigned int timeout
49
+	);
50
+
51
+typedef int (*mod_jsonrpc_request_f)(
52
+		struct sip_msg* msg,
53
+		str conn,
54
+		str method,
55
+		str params,
56
+		str route,
57
+		bool notify_only,
58
+		unsigned int retry,
59
+		unsigned int timeout
60
+	);
61
+
62
+#endif /* _JSONRPC_FUNCS_H_ */