Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.h

    r28da2da r33b6431b  
    1414#include "compat/compat.h"
    1515
     16#ifdef HAVE_STDBOOL_H
    1617#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 */
    1727
    1828#ifndef OWL_PERL
    19 #define NCURSES_ENABLE_STDBOOL_H 1
    2029#include <curses.h>
    2130#include <panel.h>
     
    5766#include "window.h"
    5867
     68#ifndef OWL_VERSION_STRING
    5969#ifdef  GIT_VERSION
    6070#define stringify(x)       __stringify(x)
     
    6474#define OWL_VERSION_STRING PACKAGE_VERSION
    6575#endif
     76#endif /* !OWL_VERSION_STRING */
    6677
    6778/* Feature that is being tested to redirect stderr through a pipe.
     
    537548  int fd;                                     /* FD to watch for dispatch. */
    538549  int mode;
     550  bool valid;
    539551  int needs_gc;
    540552  void (*callback)(const struct _owl_io_dispatch *, void *); /* C function to dispatch to. */
    541553  void (*destroy)(const struct _owl_io_dispatch *);  /* Destructor */
    542554  void *data;
     555  GPollFD pollfd;
    543556} owl_io_dispatch;
    544 
    545 typedef 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;
    551557
    552558typedef struct _owl_popexec {
     
    557563  const owl_io_dispatch *dispatch;
    558564} owl_popexec;
    559 
    560 typedef struct _OwlGlobalNotifier OwlGlobalNotifier;
    561565
    562566typedef struct _owl_global {
     
    584588  gulong typwin_erase_id;
    585589  int rightshift;
    586   volatile sig_atomic_t resizepending;
     590  bool resizepending;
    587591  char *homedir;
    588592  char *confdir;
     
    601605  char *startupargs;
    602606  int nextmsgid;
    603   int hascolors;
    604   int colorpairs;
    605607  owl_colorpair_mgr cpmgr;
    606608  pid_t newmsgproc_pid;
     
    609611  aim_conn_t bosconn;
    610612  int aim_loggedin;         /* true if currently logged into AIM */
    611   int aim_doprocessing;     /* true if we should process AIM events (like pending login) */
     613  GSource *aim_event_source; /* where we get our AIM events from */
    612614  char *aim_screenname;     /* currently logged in AIM screen name */
    613615  char *aim_screenname_for_filters;     /* currently logged in AIM screen name */
     
    619621  int haveaim;
    620622  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;
    629628  GList *timerlist;
    630629  owl_timer *aim_nop_timer;
    631630  int load_initial_subs;
    632   volatile sig_atomic_t interrupted;
    633631  FILE *debug_file;
    634632  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.