X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-config.c;h=016da835c1835f7219bd8980a98d43cbbf230447;hb=42da0c1455b0348c7163683023148ae37eb925e5;hp=7635575bc5ea8e978266660716aee25cff5563b3;hpb=550b36945f2e9eae1fc4b822ea9a00a2a866eb83;p=src%2Fapp-framework-binder.git diff --git a/src/afb-config.c b/src/afb-config.c index 7635575b..016da835 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -33,8 +33,9 @@ #if !defined(BINDING_INSTALL_DIR) #error "you should define BINDING_INSTALL_DIR" #endif - -#define AFB_VERSION "0.6" +#if !defined(AFB_VERSION) +#error "you should define AFB_VERSION" +#endif // default #define DEFLT_CNTX_TIMEOUT 3600 // default Client Connection @@ -229,14 +230,16 @@ static struct enumdesc mode_desc[] = { +--------------------------------------------------------- */ static void printVersion(FILE * file) { - fprintf(file, "\n----------------------------------------- \n"); - fprintf(file, " AFB [Application Framework Binder] version=%s |\n", - AFB_VERSION); - fprintf(file, " \n"); - fprintf(file, - " Copyright (C) 2015, 2016, 2017 \"IoT.bzh\" [fulup -at- iot.bzh]\n"); - fprintf(file, " AFB comes with ABSOLUTELY NO WARRANTY.\n"); - fprintf(file, " Licence Apache 2\n\n"); + static const char version[] = + "\n" + " AFB [Application Framework Binder] version="AFB_VERSION"\n" + "\n" + " Copyright (C) 2015, 2016, 2017 \"IoT.bzh\"\n" + " AFB comes with ABSOLUTELY NO WARRANTY.\n" + " Licence Apache 2\n" + "\n"; + + fprintf(file, "%s", version); } /*----------------------------------------------------------