| 1142 | } |
| 1143 | |
| 1144 | static inline int uses_rule_table_query(const struct head_db *dbh, str *query) |
| 1145 | { |
| 1146 | struct custom_rule_table *it; |
| 1147 | |
| 1148 | for (it = custom_rule_tables; it; it = it->next) { |
| 1149 | if (!str_strcmp(&dbh->drr_table, &it->id)) { |
| 1150 | if (query) |
| 1151 | *query = it->query; |
| 1152 | return 1; |
| 1153 | } |
| 1154 | } |
| 1155 | |
| 1156 | if (query) |
| 1157 | memset(query, 0, sizeof *query); |
| 1158 | |
| 1159 | return 0; |
| 1160 | } |
| 1161 | |
| 1162 | /* |
| 1163 | * if none is successfully loaded return |
no outgoing calls
no test coverage detected