| 863 | } |
| 864 | |
| 865 | void handle(cdb2_hndl_tp *db, const char *event, cson_value *event_val) { |
| 866 | auto h = handlers.find(event); |
| 867 | if (h == handlers.end()) { |
| 868 | cson_free_value(event_val); |
| 869 | return; |
| 870 | } |
| 871 | else |
| 872 | h->second(db, event_val); |
| 873 | } |
| 874 | |
| 875 | struct event_source { |
| 876 | std::string fname; |
no test coverage detected