| 33 | |
| 34 | |
| 35 | int connect_http_db(ph_framework_t *framework_data, int index) |
| 36 | { |
| 37 | ph_db_url_t *ph_db_urls = framework_data->ph_db_urls; |
| 38 | |
| 39 | if (*ph_db_urls[index].http_db_handle) { |
| 40 | LM_CRIT("BUG - db connection found already open\n"); |
| 41 | return -1; |
| 42 | } |
| 43 | if ((*ph_db_urls[index].http_db_handle = |
| 44 | ph_db_urls[index].http_dbf.init(&ph_db_urls[index].db_url)) == NULL) { |
| 45 | return -1; |
| 46 | } |
| 47 | return 0; |
| 48 | } |
| 49 | |
| 50 | int use_table(ph_db_table_t *db_table) |
| 51 | { |
no outgoing calls
no test coverage detected