Browse code

sqlops: allow to set the size of sql escape buffer for transformations

- alternative to GH #899

Daniel-Constantin Mierla authored on 08/01/2017 21:10:59
Showing 1 changed files
... ...
@@ -17,16 +17,19 @@
17 17
  * along with this program; if not, write to the Free Software
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  */
20
-       
20
+
21 21
 #ifndef _SQL_TRANS_H_
22 22
 #define _SQL_TRANS_H_
23 23
 
24 24
 #include "../../core/pvar.h"
25 25
 
26 26
 enum _tr_sql_type { TR_SQL_NONE=0, TR_SQL };
27
-enum _tr_sql_subtype { 
27
+enum _tr_sql_subtype {
28 28
 	TR_SQL_ST_NONE=0, TR_SQL_VAL, TR_SQL_VAL_INT, TR_SQL_VAL_STR };
29 29
 
30 30
 char* tr_parse_sql(str *in, trans_t *tr);
31 31
 
32
+int sqlops_tr_buffer_init(void);
33
+void sqlops_tr_buffer_destroy(void);
34
+
32 35
 #endif
Browse code

core, lib, modules: updated include paths for header files

Daniel-Constantin Mierla authored on 07/12/2016 11:07:22
Showing 1 changed files
... ...
@@ -21,7 +21,7 @@
21 21
 #ifndef _SQL_TRANS_H_
22 22
 #define _SQL_TRANS_H_
23 23
 
24
-#include "../../pvar.h"
24
+#include "../../core/pvar.h"
25 25
 
26 26
 enum _tr_sql_type { TR_SQL_NONE=0, TR_SQL };
27 27
 enum _tr_sql_subtype { 
Browse code

core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,32 @@
1
+/**
2
+ * Copyright (C) 2011 SpeakUp B.V. (alex@speakup.nl)
3
+ *
4
+ * This file is part of kamailio, a free SIP server.
5
+ *
6
+ * Kamailio 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
+ * Kamailio is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ * GNU General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19
+ */
20
+       
21
+#ifndef _SQL_TRANS_H_
22
+#define _SQL_TRANS_H_
23
+
24
+#include "../../pvar.h"
25
+
26
+enum _tr_sql_type { TR_SQL_NONE=0, TR_SQL };
27
+enum _tr_sql_subtype { 
28
+	TR_SQL_ST_NONE=0, TR_SQL_VAL, TR_SQL_VAL_INT, TR_SQL_VAL_STR };
29
+
30
+char* tr_parse_sql(str *in, trans_t *tr);
31
+
32
+#endif