stamen

Stamen - static menu generator
git clone git://git.dimitrijedobrota.com/stamen.git
Log | Files | Refs | README | LICENSE

stamen.h (598B)


      1 #ifndef STAMEN_STAMEN_H
      2 #define STAMEN_STAMEN_H
      3 
      4 #ifdef __cplusplus
      5 extern "C" {
      6 namespace stamen {
      7 #endif
      8 
      9 typedef int (*stamen_callback_f)(int);
     10 
     11 typedef struct stamen_item_t stamen_item_t;
     12 struct stamen_item_t {
     13     stamen_callback_f callback;
     14     const char *prompt;
     15 };
     16 
     17 typedef int (*stamen_display_f)(const char *, const stamen_item_t[], int);
     18 
     19 #if !defined __cplusplus || defined WITH_C_BINDINGS
     20 
     21 int stamen_builtin_display(const char *title, const stamen_item_t itemv[],
     22                            int size);
     23 
     24 #endif
     25 
     26 #ifdef __cplusplus
     27 } // namespace stamen
     28 } // extern "C"
     29 #endif
     30 
     31 #endif