|
@@ -35,9 +35,9 @@ extern str matrix_db_url;
|
|
extern db1_con_t * matrix_dbh;
|
|
extern db1_con_t * matrix_dbh;
|
|
extern db_func_t matrix_dbf;
|
|
extern db_func_t matrix_dbf;
|
|
|
|
|
|
-#define matrix_DB_URL { "db_url", STR_PARAM, &matrix_db_url.s },
|
|
|
|
|
|
+#define matrix_DB_URL { "db_url", PARAM_STR, &matrix_db_url },
|
|
|
|
|
|
-#define matrix_DB_TABLE { "matrix_table", STR_PARAM, &matrix_table.s },
|
|
|
|
|
|
+#define matrix_DB_TABLE { "matrix_table", PARAM_STR, &matrix_table },
|
|
|
|
|
|
extern str matrix_table;
|
|
extern str matrix_table;
|
|
|
|
|
|
@@ -46,9 +46,9 @@ extern str matrix_first_col;
|
|
extern str matrix_second_col;
|
|
extern str matrix_second_col;
|
|
extern str matrix_res_col;
|
|
extern str matrix_res_col;
|
|
#define matrix_DB_COLS \
|
|
#define matrix_DB_COLS \
|
|
-{ "matrix_first_col", STR_PARAM, &matrix_first_col.s }, \
|
|
|
|
-{ "matrix_second_col", STR_PARAM, &matrix_second_col.s }, \
|
|
|
|
-{ "matrix_res_col", STR_PARAM, &matrix_res_col.s }, \
|
|
|
|
|
|
+{ "matrix_first_col", PARAM_STR, &matrix_first_col }, \
|
|
|
|
+{ "matrix_second_col", PARAM_STR, &matrix_second_col }, \
|
|
|
|
+{ "matrix_res_col", PARAM_STR, &matrix_res_col }, \
|
|
|
|
|
|
/* table version */
|
|
/* table version */
|
|
extern const unsigned int matrix_version;
|
|
extern const unsigned int matrix_version;
|
|
@@ -76,10 +76,4 @@ int matrix_db_init(void);
|
|
*/
|
|
*/
|
|
int matrix_db_open(void);
|
|
int matrix_db_open(void);
|
|
|
|
|
|
-/*!
|
|
|
|
- * Update the variable length after eventual assignments from the config script.
|
|
|
|
- * This is necessary because we're using the 'str' type.
|
|
|
|
- */
|
|
|
|
-void matrix_db_vars(void);
|
|
|
|
-
|
|
|
|
#endif
|
|
#endif
|