htable: added alias function sht_has_name() and sht_has_str_value()
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 8 Aug 2019 14:29:01 +0000 (16:29 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 8 Aug 2019 14:29:01 +0000 (16:29 +0200)
- corresponding to the match functions, following a rename that broke
compatibility with last stable version

src/modules/htable/htable.c

index 0fea3cb..7f03a59 100644 (file)
@@ -122,8 +122,12 @@ static cmd_export_t cmds[]={
                ANY_ROUTE},
        {"sht_match_name",  (cmd_function)w_ht_match_name,   3, fixup_spve_all, 0,
                ANY_ROUTE},
+       {"sht_has_name",  (cmd_function)w_ht_match_name,   3, fixup_spve_all, 0,
+               ANY_ROUTE},
        {"sht_match_str_value", (cmd_function)w_ht_match_str_value,  3, fixup_spve_all, 0,
                ANY_ROUTE},
+       {"sht_has_str_value", (cmd_function)w_ht_match_str_value,  3, fixup_spve_all, 0,
+               ANY_ROUTE},
        {"sht_lock",        (cmd_function)w_ht_slot_lock,    1, fixup_ht_key, 0,
                ANY_ROUTE},
        {"sht_unlock",      (cmd_function)w_ht_slot_unlock,  1, fixup_ht_key, 0,