root/modules/simple_module.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. gui_module_menu_kbd_process
  2. _run
  3. _module_can_unload
  4. _module_exit_alt

   1 #include "simple_module.h"
   2 
   3 // =========  MODULE INIT =================
   4 
   5 static int running = 0;
   6 
   7 void gui_module_menu_kbd_process()
   8 {
   9     running = 0;
  10     gui_default_kbd_process_menu_btn();
  11 }
  12 
  13 /***************** BEGIN OF AUXILARY PART *********************
  14 ATTENTION: DO NOT REMOVE OR CHANGE SIGNATURES IN THIS SECTION
  15 **************************************************************/
  16 
  17 int _run()
  18 {
  19     running = 1;
  20     basic_module_init();
  21 
  22     return 0;
  23 }
  24 
  25 int _module_can_unload()
  26 {
  27     return running == 0;
  28 }
  29 
  30 int _module_exit_alt()
  31 {
  32     running = 0;
  33     return 0;
  34 }
  35 
  36 libsimple_sym _librun =
  37 {
  38     {
  39         0,
  40         0,
  41         _module_can_unload,
  42         _module_exit_alt,
  43         _run
  44     }
  45 };
  46 
  47 /*************** END OF AUXILARY PART *******************/

/* [<][>][^][v][top][bottom][index][help] */