Ignore:
Timestamp:
Nov 25, 2009, 12:47:40 PM (11 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added basic and non-working python interpreter
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/neercs.h

    r4027 r4033  
    144144};
    145145
    146 struct command_props
    147 {
     146struct interpreter_props
     147{
     148    /* Input box */
    148149        int x, y;
    149150    int size;
    150151    char *command;
     152    char *output;
    151153};
    152154
    153155struct screen_list
    154156{
     157    int outfd;                   /* Debug */
    155158    int wm_type;                 /* Window manager type */
    156159    int in_bell;                 /* Bell occuring in a window  */
     
    192195    struct cube_props cube;      /* Cube */
    193196    long long unsigned int last_switch; /* Cube */
    194     struct command_props command_props;
     197    struct interpreter_props interpreter_props;
    195198
    196199    /* ScreenSaver stuff */
     
    272275void refresh_screens(struct screen_list *screen_list);
    273276int update_screens_contents(struct screen_list* screen_list);
     277int install_fds(struct screen_list *screen_list);
    274278long long get_us(void);
    275279
     
    316320void draw_help(struct screen_list *screen_list);
    317321int help_handle_key(struct screen_list *screen_list, unsigned int c);
    318 #ifdef USE_PYTHON
    319 int  python_command_handle_key(struct screen_list *screen_list, unsigned int c);
    320 void draw_python_command(struct screen_list *screen_list);
    321 #endif
    322322int update_window_list(int c, struct screen_list *screen_list);
    323323void draw_list(struct screen_list *screen_list);
     
    360360int get_key_value(char *line, struct option *option);
    361361int fill_config(struct screen_list *screen_list);
     362
     363
     364/* Python interpreter */
     365#ifdef USE_PYTHON
     366int python_init(struct screen_list *sl);
     367int python_close(struct screen_list *sl);
     368int  python_command_handle_key(struct screen_list *screen_list, unsigned int c);
     369void draw_python_command(struct screen_list *screen_list);
     370#endif
    362371
    363372#if defined DEBUG
Note: See TracChangeset for help on using the changeset viewer.