From: Erwan Velu Date: Mon, 7 Dec 2009 15:02:13 +0000 (+0100) Subject: hdt: Adding IRC channel in project info X-Git-Tag: syslinux-4.04-pre6~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe409fb01eb784df5ce8a1e54a0a1ef6aaca063c;p=profile%2Fivi%2Fsyslinux.git hdt: Adding IRC channel in project info Impact: visual Let's give the irc channel info in our about menu --- diff --git a/com32/hdt/hdt-cli-hdt.c b/com32/hdt/hdt-cli-hdt.c index 47cef66..fc0d7f3 100644 --- a/com32/hdt/hdt-cli-hdt.c +++ b/com32/hdt/hdt-cli-hdt.c @@ -227,6 +227,7 @@ void main_show_hdt(int argc __unused, char **argv __unused, more_printf(" Product : %s\n", PRODUCT_NAME); more_printf(" Version : %s (%s)\n", VERSION, CODENAME); more_printf(" Website : %s\n", WEBSITE_URL); + more_printf(" IRC Channel : %s\n", IRC_CHANNEL); more_printf(" Mailing List : %s\n", CONTACT); more_printf(" Project Leader : %s\n", AUTHOR); more_printf(" Core Developer : %s\n", CORE_DEVELOPER); diff --git a/com32/hdt/hdt-menu-about.c b/com32/hdt/hdt-menu-about.c index 1e8a6ff..c88e308 100644 --- a/com32/hdt/hdt-menu-about.c +++ b/com32/hdt/hdt-menu-about.c @@ -52,7 +52,12 @@ void compute_aboutmenu(struct s_my_menu *menu) menu->items_count++; snprintf(buffer, sizeof buffer, "Website : %s", WEBSITE_URL); - snprintf(statbuffer, sizeof statbuffer, "Website : %s",WEBSITE_URL); + snprintf(statbuffer, sizeof statbuffer, "Website : %s",WEBSITE_URL); + add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); + menu->items_count++; + + snprintf(buffer, sizeof buffer, "IRC Channel : %s", IRC_CHANNEL); + snprintf(statbuffer, sizeof statbuffer, "IRC Channel : %s",IRC_CHANNEL); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; @@ -67,7 +72,7 @@ void compute_aboutmenu(struct s_my_menu *menu) snprintf(statbuffer, sizeof statbuffer, "Project Leader : %s", AUTHOR); add_item(buffer, statbuffer, OPT_INACTIVE, NULL, 0); menu->items_count++; - + snprintf(buffer, sizeof buffer, "Core Developer : %s", CORE_DEVELOPER); snprintf(statbuffer, sizeof statbuffer, "Core Developer : %s", CORE_DEVELOPER); diff --git a/com32/hdt/hdt.h b/com32/hdt/hdt.h index 9cd74cb..bdd9e99 100644 --- a/com32/hdt/hdt.h +++ b/com32/hdt/hdt.h @@ -38,6 +38,7 @@ #define NB_CONTRIBUTORS 3 #define CONTRIBUTORS {"Sebastien Gonzalve (Patches)", "Gert Hulselmans (Tests)", "Alexander Andino (Design)"} #define WEBSITE_URL "http://hdt-project.org" +#define IRC_CHANNEL "#hdt on freenode" #define ATTR_PACKED __attribute__((packed))