-#if !defined(REMOVE_LEGACY_TRACE)
-static struct flag legacy_ditf_flags[] = { /* must be sorted by names */
- { "all", afb_hook_flags_api_ditf_all },
- { "common", afb_hook_flags_api_ditf_common },
- { "event_broadcast_after", afb_hook_flag_api_event_broadcast },
- { "event_broadcast_before", afb_hook_flag_api_event_broadcast },
- { "event_make", afb_hook_flag_api_event_make },
- { "extra", afb_hook_flags_api_ditf_extra },
- { "get_event_loop", afb_hook_flag_api_get_event_loop },
- { "get_system_bus", afb_hook_flag_api_get_system_bus },
- { "get_user_bus", afb_hook_flag_api_get_user_bus },
- { "queue_job", afb_hook_flag_api_queue_job },
- { "require_api", afb_hook_flag_api_require_api },
- { "require_api_result", afb_hook_flag_api_require_api },
- { "rootdir_get_fd", afb_hook_flag_api_rootdir_get_fd },
- { "rootdir_open_locale", afb_hook_flag_api_rootdir_open_locale },
- { "unstore_req", afb_hook_flag_api_legacy_unstore_req },
- { "vverbose", afb_hook_flag_api_vverbose },
-};
-
-static struct flag legacy_svc_flags[] = { /* must be sorted by names */
- { "all", afb_hook_flags_api_svc_all },
- { "call", afb_hook_flag_api_call },
- { "call_result", afb_hook_flag_api_call },
- { "callsync", afb_hook_flag_api_callsync },
- { "callsync_result", afb_hook_flag_api_callsync },
- { "on_event_after", afb_hook_flag_api_on_event },
- { "on_event_before", afb_hook_flag_api_on_event },
- { "start_after", afb_hook_flag_api_start },
- { "start_before", afb_hook_flag_api_start },
-};
-
-/* get the export value for flag of 'name' */
-static int get_legacy_ditf_flag(const char *name)
-{
- return get_flag(name, legacy_ditf_flags, (int)(sizeof legacy_ditf_flags / sizeof *legacy_ditf_flags));
-}
-
-/* get the export value for flag of 'name' */
-static int get_legacy_svc_flag(const char *name)
-{
- return get_flag(name, legacy_svc_flags, (int)(sizeof legacy_svc_flags / sizeof *legacy_svc_flags));
-}
-#endif
-
-static struct flag api_flags[] = { /* must be sorted by names */
- { "add_alias", afb_hook_flag_api_add_alias },
- { "all", afb_hook_flags_api_all },
- { "api_add_verb", afb_hook_flag_api_api_add_verb },
- { "api", afb_hook_flags_api_api },
- { "api_del_verb", afb_hook_flag_api_api_del_verb },
- { "api_seal", afb_hook_flag_api_api_seal },
- { "api_set_on_event", afb_hook_flag_api_api_set_on_event },
- { "api_set_on_init", afb_hook_flag_api_api_set_on_init },
- { "api_set_verbs", afb_hook_flag_api_api_set_verbs },
- { "call", afb_hook_flag_api_call },
- { "callsync", afb_hook_flag_api_callsync },
- { "class_provide", afb_hook_flag_api_class_provide },
- { "class_require", afb_hook_flag_api_class_require },
- { "common", afb_hook_flags_api_common },
- { "delete_api", afb_hook_flag_api_delete_api },
- { "event", afb_hook_flags_api_event },
- { "event_broadcast", afb_hook_flag_api_event_broadcast },
- { "event_handler_add", afb_hook_flag_api_event_handler_add },
- { "event_handler_del", afb_hook_flag_api_event_handler_del },
- { "event_make", afb_hook_flag_api_event_make },
- { "extra", afb_hook_flags_api_extra },
- { "get_event_loop", afb_hook_flag_api_get_event_loop },
- { "get_system_bus", afb_hook_flag_api_get_system_bus },
- { "get_user_bus", afb_hook_flag_api_get_user_bus },
- { "legacy_unstore_req", afb_hook_flag_api_legacy_unstore_req },
- { "new_api", afb_hook_flag_api_new_api },
- { "on_event", afb_hook_flag_api_on_event },
- { "on_event_handler", afb_hook_flag_api_on_event_handler },
- { "queue_job", afb_hook_flag_api_queue_job },
- { "require_api", afb_hook_flag_api_require_api },
- { "rootdir_get_fd", afb_hook_flag_api_rootdir_get_fd },
- { "rootdir_open_locale",afb_hook_flag_api_rootdir_open_locale },
- { "start", afb_hook_flag_api_start },
- { "vverbose", afb_hook_flag_api_vverbose },
-};
-
-/* get the export value for flag of 'name' */
-static int get_api_flag(const char *name)
-{
- return get_flag(name, api_flags, (int)(sizeof api_flags / sizeof *api_flags));
-}
-