stamen

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

c_bindings.cpp (646B)


      1 #include "stamen/menu.hpp"
      2 #include "stamen/stamen.hpp"
      3 
      4 extern "C"
      5 {
      6 namespace stamen {
      7 
      8 int stamen_builtin_display(const char* title,
      9                            const stamen_item_t itemv[],
     10                            size_t size)
     11 {
     12   return builtin_display(title, itemv, size);
     13 }
     14 
     15 }  // namespace stamen
     16 
     17 namespace stamen::menu {
     18 
     19 void stamen_menu_read(const char* filename)
     20 {
     21   return read(filename);
     22 }
     23 
     24 void stamen_menu_insert(const char* code, stamen_callback_f callback)
     25 {
     26   return insert(code, callback);
     27 }
     28 
     29 int stamen_menu_dynamic(const char* code, stamen_display_f disp)
     30 {
     31   return dynamic(code, disp);
     32 }
     33 
     34 }  // namespace stamen::menu
     35 }