X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=common%2Fmenu.h;h=f34d5a860e83a2f2d1b612917ca9345e1807a4fe;hb=95a2ec38bc4338db3c50985d11d86fc04a95b399;hp=21c589e1283061235f7c2140ac44f565c50bb816;hpb=9c2179d3563c9425270dee114167e7149528e8bd;p=libpicofe.git diff --git a/common/menu.h b/common/menu.h index 21c589e..f34d5a8 100644 --- a/common/menu.h +++ b/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 }