Changes in owl.h [28da2da:33b6431b]
Legend:
- Unmodified
- Added
- Removed
-
owl.h
r28da2da r33b6431b 14 14 #include "compat/compat.h" 15 15 16 #ifdef HAVE_STDBOOL_H 16 17 #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 */ 17 27 18 28 #ifndef OWL_PERL 19 #define NCURSES_ENABLE_STDBOOL_H 120 29 #include <curses.h> 21 30 #include <panel.h> … … 57 66 #include "window.h" 58 67 68 #ifndef OWL_VERSION_STRING 59 69 #ifdef GIT_VERSION 60 70 #define stringify(x) __stringify(x) … … 64 74 #define OWL_VERSION_STRING PACKAGE_VERSION 65 75 #endif 76 #endif /* !OWL_VERSION_STRING */ 66 77 67 78 /* Feature that is being tested to redirect stderr through a pipe. … … 537 548 int fd; /* FD to watch for dispatch. */ 538 549 int mode; 550 bool valid; 539 551 int needs_gc; 540 552 void (*callback)(const struct _owl_io_dispatch *, void *); /* C function to dispatch to. */ 541 553 void (*destroy)(const struct _owl_io_dispatch *); /* Destructor */ 542 554 void *data; 555 GPollFD pollfd; 543 556 } 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;551 557 552 558 typedef struct _owl_popexec { … … 557 563 const owl_io_dispatch *dispatch; 558 564 } owl_popexec; 559 560 typedef struct _OwlGlobalNotifier OwlGlobalNotifier;561 565 562 566 typedef struct _owl_global { … … 584 588 gulong typwin_erase_id; 585 589 int rightshift; 586 volatile sig_atomic_tresizepending;590 bool resizepending; 587 591 char *homedir; 588 592 char *confdir; … … 601 605 char *startupargs; 602 606 int nextmsgid; 603 int hascolors;604 int colorpairs;605 607 owl_colorpair_mgr cpmgr; 606 608 pid_t newmsgproc_pid; … … 609 611 aim_conn_t bosconn; 610 612 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 */ 612 614 char *aim_screenname; /* currently logged in AIM screen name */ 613 615 char *aim_screenname_for_filters; /* currently logged in AIM screen name */ … … 619 621 int haveaim; 620 622 int ignoreaimlogin; 621 volatile sig_atomic_t got_err_signal; /* 1 if we got an unexpected signal */622 volatile siginfo_t err_signal_info;623 623 owl_zbuddylist zbuddies; 624 624 GList *zaldlist; … … 626 626 struct termios startup_tio; 627 627 owl_list io_dispatch_list; 628 owl_list psa_list;629 628 GList *timerlist; 630 629 owl_timer *aim_nop_timer; 631 630 int load_initial_subs; 632 volatile sig_atomic_t interrupted;633 631 FILE *debug_file; 634 632 char *kill_buffer; 633 int interrupt_count; 634 GMutex *interrupt_lock; 635 635 } owl_global; 636 636
Note: See TracChangeset
for help on using the changeset viewer.