X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Fcommon%2Fmenu.h;h=f34d5a860e83a2f2d1b612917ca9345e1807a4fe;hp=21c589e1283061235f7c2140ac44f565c50bb816;hb=056d67598872b0bac092878972633d6c10aa0ad6;hpb=698517be481301b4525c29873134a67b8343af3c diff --git a/frontend/common/menu.h b/frontend/common/menu.h index 21c589e1..f34d5a86 100644 --- a/frontend/common/menu.h +++ b/frontend/common/menu.h @@ -1,4 +1,12 @@ -// (c) Copyright 2006-2009 notaz, All rights reserved. +/* + * (C) Gražvydas "notaz" Ignotas, 2006-2010 + * + * This work is licensed under the terms of any of these licenses + * (at your option): + * - GNU GPL, version 2 or later. + * - GNU LGPL, version 2.1 or later. + * See the COPYING file in the top-level directory. + */ typedef enum { @@ -29,12 +37,18 @@ typedef struct const char *help; } menu_entry; +#define mee_handler_id_h(name, id, handler, help) \ + { name, MB_NONE, id, NULL, 0, 0, 0, 1, 0, 1, handler, NULL, NULL, help } + #define mee_handler_id(name, id, handler) \ - { name, MB_NONE, id, NULL, 0, 0, 0, 1, 0, 1, handler, NULL, NULL, NULL } + mee_handler_id_h(name, id, handler, NULL) #define mee_handler(name, handler) \ mee_handler_id(name, MA_NONE, handler) +#define mee_handler_h(name, handler, help) \ + mee_handler_id_h(name, MA_NONE, handler, help) + #define mee_label(name) \ { name, MB_NONE, MA_NONE, NULL, 0, 0, 0, 1, 0, 0, NULL, NULL, NULL, NULL }