X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=include%2Fafb%2Fafb-binding.h;fp=include%2Fafb%2Fafb-binding.h;h=69be174a5ac5a8a1b7d9641ccf6538f1fb6ff4a7;hb=404d36e7ce15941d07bded3c70ad91070a4d4a35;hp=3215c594190b72521f205842bc3b9ca1dfda288d;hpb=4463a417e6902da487c37db539a85aa9193249a0;p=src%2Fapp-framework-binder.git diff --git a/include/afb/afb-binding.h b/include/afb/afb-binding.h index 3215c594..69be174a 100644 --- a/include/afb/afb-binding.h +++ b/include/afb/afb-binding.h @@ -179,6 +179,10 @@ typedef struct afb_service_itf afb_service_itf; #if AFB_BINDING_VERSION == 2 # define afb_binding afb_binding_v2 +# define afb_get_verbosity afb_get_verbosity_v2 +# define afb_get_daemon afb_get_daemon_v2 +# define afb_get_service afb_get_service_v2 + # define AFB_SESSION_NONE AFB_SESSION_NONE_V2 # define AFB_SESSION_CLOSE AFB_SESSION_CLOSE_V2 @@ -229,6 +233,20 @@ typedef struct afb_service_itf afb_service_itf; #endif +/***************************************************************************************************/ + +#if AFB_BINDING_VERSION >= 2 + +# define afb_verbose_error() (afb_get_verbosity() >= 0) +# define afb_verbose_warning() (afb_get_verbosity() >= 1) +# define afb_verbose_notice() (afb_get_verbosity() >= 1) +# define afb_verbose_info() (afb_get_verbosity() >= 2) +# define afb_verbose_debug() (afb_get_verbosity() >= 3) + +#endif + +/***************************************************************************************************/ + #if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_UNPREFIX) # if !defined(AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO) # define ERROR AFB_ERROR