First checkin of Minimenu
[pandora-libraries.git] / minimenu / mmenu.h
1
2 #ifndef h_mmenu_h
3 #define h_mmenu_h
4
5 // utility
6 #define IFNULL(foo,bar) (foo)?(foo):(bar)
7 extern char *pnd_run_script;
8
9 // base searchpath to locate the conf
10 #define MMENU_CONF "mmenu.conf"
11 #define MMENU_CONF_SEARCHPATH "/etc/pandora/conf:./minimenu"
12
13 // keys
14 #define MMENU_ARTPATH "minimenu.static_art_path"
15 #define MMENU_APP_SEARCHPATH "apps.searchpath"
16
17 #define MMENU_GRID_FONT "grid.font"
18 #define MMENU_GRID_FONTSIZE "grid.font_ptsize"
19
20 #define MMENU_DISP_COLMAX "grid.col_max"
21 #define MMENU_DISP_ROWMAX "grid.row_max"
22 #define MMENU_DISP_ICON_MAX_WIDTH "grid.icon_max_width"
23 #define MMENU_DISP_ICON_MAX_HEIGHT "grid.icon_max_height"
24
25 typedef enum {
26   pndn_debug = 0,
27   pndn_rem,          // will set default log level to here, so 'debug' is omitted
28   pndn_warning,
29   pndn_error,
30   pndn_none
31 } pndnotify_loglevels_e;
32
33 void emit_and_quit ( char *s );
34
35 #endif