Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r33b6431b r28da2da  
    1414#include "compat/compat.h"
    1515
    16 #ifdef HAVE_STDBOOL_H
    1716#include <stdbool.h>
    18 #else
    19 #ifndef HAVE__BOOL
    20 #define _Bool signed char
    21 #endif
    22 #define bool _Bool
    23 #define false 0
    24 #define true 1
    25 #define __bool_true_false_are_defined 1
    26 #endif  /* HAVE_STDBOOL_H */
    2717
    2818#ifndef OWL_PERL
     19#define NCURSES_ENABLE_STDBOOL_H 1
    2920#include <curses.h>
    3021#include <panel.h>
     
    6657#include "window.h"
    6758
    68 #ifndef OWL_VERSION_STRING
    6959#ifdef  GIT_VERSION
    7060#define stringify(x)       __stringify(x)
     
    7464#define OWL_VERSION_STRING PACKAGE_VERSION
    7565#endif
    76 #endif /* !OWL_VERSION_STRING */
    7766
    7867/* Feature that is being tested to redirect stderr through a pipe.
     
    548537  int fd;                                     /* FD to watch for dispatch. */
    549538  int mode;
    550   bool valid;
    551539  int needs_gc;
    552540  void (*callback)(const struct _owl_io_dispatch *, void *); /* C function to dispatch to. */
    553541  void (*destroy)(const struct _owl_io_dispatch *);  /* Destructor */
    554542  void *data;
    555   GPollFD pollfd;
    556543} owl_io_dispatch;
     544
     545typedef struct _owl_ps_action {
     546  int needs_gc;
     547  int (*callback)(struct _owl_ps_action *, void *);
     548  void (*destroy)(struct _owl_ps_action *);
     549  void *data;
     550} owl_ps_action;
    557551
    558552typedef struct _owl_popexec {
     
    563557  const owl_io_dispatch *dispatch;
    564558} owl_popexec;
     559
     560typedef struct _OwlGlobalNotifier OwlGlobalNotifier;
    565561
    566562typedef struct _owl_global {
     
    588584  gulong typwin_erase_id;
    589585  int rightshift;
    590   bool resizepending;
     586  volatile sig_atomic_t resizepending;
    591587  char *homedir;
    592588  char *confdir;
     
    605601  char *startupargs;
    606602  int nextmsgid;
     603  int hascolors;
     604  int colorpairs;
    607605  owl_colorpair_mgr cpmgr;
    608606  pid_t newmsgproc_pid;
     
    611609  aim_conn_t bosconn;
    612610  int aim_loggedin;         /* true if currently logged into AIM */
    613   GSource *aim_event_source; /* where we get our AIM events from */
     611  int aim_doprocessing;     /* true if we should process AIM events (like pending login) */
    614612  char *aim_screenname;     /* currently logged in AIM screen name */
    615613  char *aim_screenname_for_filters;     /* currently logged in AIM screen name */
     
    621619  int haveaim;
    622620  int ignoreaimlogin;
     621  volatile sig_atomic_t got_err_signal; /* 1 if we got an unexpected signal */
     622  volatile siginfo_t err_signal_info;
    623623  owl_zbuddylist zbuddies;
    624624  GList *zaldlist;
     
    626626  struct termios startup_tio;
    627627  owl_list io_dispatch_list;
     628  owl_list psa_list;
    628629  GList *timerlist;
    629630  owl_timer *aim_nop_timer;
    630631  int load_initial_subs;
     632  volatile sig_atomic_t interrupted;
    631633  FILE *debug_file;
    632634  char *kill_buffer;
    633   int interrupt_count;
    634   GMutex *interrupt_lock;
    635635} owl_global;
    636636
Note: See TracChangeset for help on using the changeset viewer.