source: owl.h @ 32da267

barnowl_perlaimdebianrelease-1.10release-1.4release-1.5release-1.6release-1.7release-1.8release-1.9
Last change on this file since 32da267 was 50dd3a0, checked in by Nelson Elhage <nelhage@mit.edu>, 17 years ago
Only define OWL_VERSION_STRING if it's not defined, to help broder's Debian packaging.
  • Property mode set to 100644
File size: 18.8 KB
Line 
1/*  Copyright (c) 2004 James Kretchmar. All rights reserved.
2 *
3 *  Redistribution and use in source and binary forms, with or without
4 *  modification, are permitted provided that the following conditions are
5 *  met:
6 * 
7 *    * Redistributions of source code must retain the above copyright
8 *      notice, this list of conditions and the following disclaimer.
9 * 
10 *    * Redistributions in binary form must reproduce the above copyright
11 *      notice, this list of conditions and the following disclaimer in
12 *      the documentation and/or other materials provided with the
13 *      distribution.
14 * 
15 *    * Redistributions in any form must be accompanied by information on
16 *      how to obtain complete source code for the Owl software and any
17 *      accompanying software that uses the Owl software. The source code
18 *      must either be included in the distribution or be available for no
19 *      more than the cost of distribution plus a nominal fee, and must be
20 *      freely redistributable under reasonable conditions. For an
21 *      executable file, complete source code means the source code for
22 *      all modules it contains. It does not include source code for
23 *      modules or files that typically accompany the major components of
24 *      the operating system on which the executable file runs.
25 * 
26 *
27 *  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
28 *  IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
29 *  WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
30 *  NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
31 *  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
32 *  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
33 *  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
34 *  BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35 *  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36 *  OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
37 *  IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38 */
39
40#ifndef INC_OWL_H
41#define INC_OWL_H
42
43#ifndef OWL_PERL
44#include <curses.h>
45#endif
46#include <sys/param.h>
47#include <EXTERN.h>
48#include <netdb.h>
49#include <regex.h>
50#include <time.h>
51#include <signal.h>
52#include <termios.h>
53#include <libfaim/aim.h>
54#include <wchar.h>
55#include "config.h"
56#include "glib.h"
57#ifdef HAVE_LIBZEPHYR
58#include <zephyr/zephyr.h>
59#endif
60#ifdef HAVE_COM_ERR_H
61#include <com_err.h>
62#endif
63
64/* Perl and curses don't play nice. */
65#ifdef OWL_PERL
66typedef void WINDOW;
67/* logout is defined in FreeBSD. */
68#define logout logout_
69/* aim.h defines bool */
70#define HAS_BOOL
71#include <perl.h>
72#include "owl_perl.h"
73#undef logout
74#include "XSUB.h"
75#else
76typedef void SV;
77#endif
78
79static const char owl_h_fileIdent[] = "$Id$";
80
81#define BARNOWL_STRINGIFY(x) _STRINGIFY(x)
82#define _STRINGIFY(x) #x
83
84#ifndef OWL_SVN_REVNO
85#define OWL_SVN_REVNO ????
86#endif
87
88#ifndef OWL_VERSION_STRING
89#define OWL_VERSION_STRING "r" BARNOWL_STRINGIFY(OWL_SVN_REVNO)
90#endif
91
92
93/* Feature that is being tested to redirect stderr through a pipe.
94 * There may still be some portability problems with this. */
95#define OWL_STDERR_REDIR 1
96
97#define OWL_DEBUG 0
98#define OWL_DEBUG_FILE "/var/tmp/owldebug"
99
100#define OWL_CONFIG_DIR "/.owl"             /* this is relative to the user's home directory */
101#define OWL_STARTUP_FILE "/.owl/startup"   /* this is relative to the user's home directory */
102
103#define OWL_FMTEXT_ATTR_NONE      0
104#define OWL_FMTEXT_ATTR_BOLD      1
105#define OWL_FMTEXT_ATTR_REVERSE   2
106#define OWL_FMTEXT_ATTR_UNDERLINE 4
107
108#define OWL_FMTEXT_UC_BASE 0x100000 /* Unicode Plane 16 - Supplementary Private Use Area-B*/
109#define OWL_FMTEXT_UC_ATTR ( OWL_FMTEXT_UC_BASE | 0x800 )
110#define OWL_FMTEXT_UC_ATTR_MASK 0x7
111#define OWL_FMTEXT_UC_COLOR_BASE ( OWL_FMTEXT_UC_BASE | 0x400 )
112#define OWL_FMTEXT_UC_FGCOLOR OWL_FMTEXT_UC_COLOR_BASE
113#define OWL_FMTEXT_UC_BGCOLOR ( OWL_FMTEXT_UC_COLOR_BASE | 0x200 )
114#define OWL_FMTEXT_UC_DEFAULT_COLOR 0x100
115#define OWL_FMTEXT_UC_FGDEFAULT ( OWL_FMTEXT_UC_FGCOLOR | OWL_FMTEXT_UC_DEFAULT_COLOR )
116#define OWL_FMTEXT_UC_BGDEFAULT ( OWL_FMTEXT_UC_BGCOLOR | OWL_FMTEXT_UC_DEFAULT_COLOR )
117#define OWL_FMTEXT_UC_COLOR_MASK 0xFF
118#define OWL_FMTEXT_UC_ALLCOLOR_MASK ( OWL_FMTEXT_UC_COLOR_MASK | OWL_FMTEXT_UC_DEFAULT_COLOR | 0x200)
119#define OWL_FMTEXT_UC_STARTBYTE_UTF8 '\xf4'
120
121#define OWL_FMTEXT_UTF8_ATTR_NONE "\xf4\x80\xa0\x80"
122#define OWL_FMTEXT_UTF8_FGDEFAULT "\xf4\x80\x94\x80"
123#define OWL_FMTEXT_UTF8_BGDEFAULT "\xf4\x80\x9C\x80"
124
125#define OWL_COLOR_BLACK     0
126#define OWL_COLOR_RED       1
127#define OWL_COLOR_GREEN     2
128#define OWL_COLOR_YELLOW    3
129#define OWL_COLOR_BLUE      4
130#define OWL_COLOR_MAGENTA   5
131#define OWL_COLOR_CYAN      6
132#define OWL_COLOR_WHITE     7
133#define OWL_COLOR_DEFAULT   -1
134
135#define OWL_EDITWIN_STYLE_MULTILINE 0
136#define OWL_EDITWIN_STYLE_ONELINE   1
137
138#define OWL_PROTOCOL_ZEPHYR         0
139#define OWL_PROTOCOL_AIM            1
140#define OWL_PROTOCOL_JABBER         2
141#define OWL_PROTOCOL_ICQ            3
142#define OWL_PROTOCOL_YAHOO          4
143#define OWL_PROTOCOL_MSN            5
144
145#define OWL_MESSAGE_DIRECTION_NONE  0
146#define OWL_MESSAGE_DIRECTION_IN    1
147#define OWL_MESSAGE_DIRECTION_OUT   2
148
149#define OWL_MUX_READ   1
150#define OWL_MUX_WRITE  2
151#define OWL_MUX_EXCEPT 4
152
153#define OWL_DIRECTION_NONE      0
154#define OWL_DIRECTION_DOWNWARDS 1
155#define OWL_DIRECTION_UPWARDS   2
156
157#define OWL_LOGGING_DIRECTION_BOTH 0
158#define OWL_LOGGING_DIRECTION_IN   1
159#define OWL_LOGGING_DIRECTION_OUT  2
160
161#define OWL_SCROLLMODE_NORMAL      0
162#define OWL_SCROLLMODE_TOP         1
163#define OWL_SCROLLMODE_NEARTOP     2
164#define OWL_SCROLLMODE_CENTER      3
165#define OWL_SCROLLMODE_PAGED       4
166#define OWL_SCROLLMODE_PAGEDCENTER 5
167
168#define OWL_TAB               3  /* This *HAS* to be the size of TABSTR below */
169#define OWL_TABSTR        "   "
170#define OWL_MSGTAB            7
171#define OWL_TYPWIN_SIZE       8
172#define OWL_HISTORYSIZE       50
173
174/* Indicate current state, as well as what is allowed */
175#define OWL_CTX_ANY          0xffff
176/* Only one of these may be active at a time... */
177#define OWL_CTX_MODE_BITS    0x000f
178#define OWL_CTX_STARTUP      0x0001
179#define OWL_CTX_READCONFIG   0x0002
180#define OWL_CTX_INTERACTIVE  0x0004
181/* Only one of these may be active at a time... */
182#define OWL_CTX_ACTIVE_BITS  0xfff0
183#define OWL_CTX_POPWIN       0x00f0
184#define OWL_CTX_POPLESS      0x0010
185#define OWL_CTX_RECWIN       0x0f00
186#define OWL_CTX_RECV         0x0100
187#define OWL_CTX_TYPWIN       0xf000
188#define OWL_CTX_EDIT         0x7000
189#define OWL_CTX_EDITLINE     0x1000
190#define OWL_CTX_EDITMULTI    0x2000
191#define OWL_CTX_EDITRESPONSE 0x4000
192
193#define OWL_USERCLUE_NONE       0
194#define OWL_USERCLUE_CLASSES    1
195#define OWL_USERCLUE_FOOBAR     2
196#define OWL_USERCLUE_BAZ        4
197
198#define OWL_WEBBROWSER_NONE     0
199#define OWL_WEBBROWSER_NETSCAPE 1
200#define OWL_WEBBROWSER_GALEON   2
201#define OWL_WEBBROWSER_OPERA    3
202
203#define OWL_VARIABLE_OTHER      0
204#define OWL_VARIABLE_INT        1
205#define OWL_VARIABLE_BOOL       2
206#define OWL_VARIABLE_STRING     3
207
208#define OWL_FILTER_MAX_DEPTH    300
209
210#define OWL_KEYMAP_MAXSTACK     20
211
212#define OWL_KEYBINDING_COMMAND  1   /* command string */
213#define OWL_KEYBINDING_FUNCTION 2   /* function taking no args */
214
215#define OWL_DEFAULT_ZAWAYMSG    "I'm sorry, but I am currently away from the terminal and am\nnot able to receive your message.\n"
216#define OWL_DEFAULT_AAWAYMSG    "I'm sorry, but I am currently away from the terminal and am\nnot able to receive your message.\n"
217
218#define OWL_INCLUDE_REG_TESTS   1  /* whether to build in regression tests */
219
220#define OWL_CMD_ALIAS_SUMMARY_PREFIX "command alias to: "
221
222#define OWL_WEBZEPHYR_PRINCIPAL "daemon.webzephyr"
223#define OWL_WEBZEPHYR_CLASS     "webzephyr"
224#define OWL_WEBZEPHYR_OPCODE    "webzephyr"
225
226#define OWL_REGEX_QUOTECHARS    "+*.?[]^\\${}()"
227#define OWL_REGEX_QUOTEWITH     "\\"
228
229#if defined(HAVE_DES_STRING_TO_KEY) && defined(HAVE_DES_KEY_SCHED) && defined(HAVE_DES_ECB_ENCRYPT)
230#define OWL_ENABLE_ZCRYPT 1
231#endif
232
233#define OWL_META(key) ((key)|010000)
234/* OWL_CTRL is definied in kepress.c */
235
236#define LINE 2048
237
238typedef struct _owl_variable {
239  char *name;
240  int   type;  /* OWL_VARIABLE_* */
241  void *pval_default;  /* for types other and string */
242  int   ival_default;  /* for types int and bool     */
243  char *validsettings;          /* documentation of valid settings */
244  char *summary;                /* summary of usage */
245  char *description;            /* detailed description */
246  void *val;                    /* current value */
247  int  (*validate_fn)(struct _owl_variable *v, void *newval);
248                                /* returns 1 if newval is valid */
249  int  (*set_fn)(struct _owl_variable *v, void *newval); 
250                                /* sets the variable to a value
251                                 * of the appropriate type.
252                                 * unless documented, this
253                                 * should make a copy.
254                                 * returns 0 on success. */
255  int  (*set_fromstring_fn)(struct _owl_variable *v, char *newval);
256                                /* sets the variable to a value
257                                 * of the appropriate type.
258                                 * unless documented, this
259                                 * should make a copy.
260                                 * returns 0 on success. */
261  void *(*get_fn)(struct _owl_variable *v);
262                                /* returns a reference to the current value.
263                                 * WARNING:  this approach is hard to make
264                                 * thread-safe... */
265  int  (*get_tostring_fn)(struct _owl_variable *v, 
266                          char *buf, int bufsize, void *val); 
267                                /* converts val to a string
268                                 * and puts into buf */
269  void  (*free_fn)(struct _owl_variable *v);
270                                /* frees val as needed */
271} owl_variable;
272
273typedef struct _owl_input {
274  int ch;
275  gunichar uch;
276} owl_input;
277
278typedef struct _owl_fmtext {
279  int textlen;
280  int bufflen;
281  char *textbuff;
282  char default_attrs;
283  short default_fgcolor;
284  short default_bgcolor;
285} owl_fmtext;
286
287typedef struct _owl_list {
288  int size;
289  int avail;
290  void **list;
291} owl_list;
292
293typedef struct _owl_dict_el {
294  char *k;                      /* key   */
295  void *v;                      /* value */
296} owl_dict_el;
297
298typedef struct _owl_dict {
299  int size;
300  int avail;
301  owl_dict_el *els;             /* invariant: sorted by k */
302} owl_dict;
303typedef owl_dict owl_vardict;   /* dict of variables */
304typedef owl_dict owl_cmddict;   /* dict of commands */
305
306typedef struct _owl_context {
307  int   mode;
308  void *data;           /* determined by mode */
309} owl_context;
310
311typedef struct _owl_cmd {       /* command */
312  char *name;
313
314  char *summary;                /* one line summary of command */
315  char *usage;                  /* usage synopsis */
316  char *description;            /* long description of command */
317
318  int validctx;                 /* bitmask of valid contexts */
319
320  /* we should probably have a type here that says which of
321   * the following is valid, and maybe make the below into a union... */
322
323  /* Only one of these may be non-NULL ... */
324
325  char *cmd_aliased_to;         /* what this command is aliased to... */
326 
327  /* These don't take any context */
328  char *(*cmd_args_fn)(int argc, char **argv, char *buff); 
329                                /* takes argv and the full command as buff.
330                                 * caller must free return value if !NULL */
331  void (*cmd_v_fn)(void);       /* takes no args */
332  void (*cmd_i_fn)(int i);      /* takes an int as an arg */
333
334  /* The following also take the active context if it's valid */
335  char *(*cmd_ctxargs_fn)(void *ctx, int argc, char **argv, char *buff); 
336                                /* takes argv and the full command as buff.
337                                 * caller must free return value if !NULL */
338  void (*cmd_ctxv_fn)(void *ctx);               /* takes no args */
339  void (*cmd_ctxi_fn)(void *ctx, int i);        /* takes an int as an arg */
340  SV *cmd_perl;                                /* Perl closure that takes a list of args */
341} owl_cmd;
342
343
344typedef struct _owl_zwrite {
345  char *class;
346  char *inst;
347  char *realm;
348  char *opcode;
349  char *zsig;
350  char *message;
351  owl_list recips;
352  int cc;
353  int noping;
354} owl_zwrite;
355
356typedef struct _owl_pair {
357  void *key;
358  void *value;
359} owl_pair;
360
361struct _owl_fmtext_cache;
362
363typedef struct _owl_message {
364  int id;
365  int direction;
366#ifdef HAVE_LIBZEPHYR
367  ZNotice_t notice;
368#endif
369  struct _owl_fmtext_cache * fmtext;
370  int delete;
371  char *hostname;
372  owl_list attributes;            /* this is a list of pairs */
373  char *timestr;
374  time_t time;
375  char *zwriteline;
376} owl_message;
377
378#define OWL_FMTEXT_CACHE_SIZE 1000
379/* We cache the saved fmtexts for the last bunch of messages we
380   rendered */
381typedef struct _owl_fmtext_cache {
382    owl_message * message;
383    owl_fmtext fmtext;
384} owl_fmtext_cache;
385
386typedef struct _owl_style {
387  char *name;
388  SV *perlobj;
389} owl_style;
390
391typedef struct _owl_mainwin {
392  int curtruncated;
393  int lasttruncated;
394  int lastdisplayed;
395} owl_mainwin;
396
397typedef struct _owl_viewwin {
398  owl_fmtext fmtext;
399  int textlines;
400  int topline;
401  int rightshift;
402  int winlines, wincols;
403  WINDOW *curswin;
404  void (*onclose_hook) (struct _owl_viewwin *vwin, void *data);
405  void *onclose_hook_data;
406} owl_viewwin;
407 
408typedef struct _owl_popwin {
409  WINDOW *borderwin;
410  WINDOW *popwin;
411  int lines;
412  int cols;
413  int active;
414  int needsfirstrefresh;
415  void (*handler) (int ch);
416} owl_popwin;
417
418typedef struct _owl_popexec {
419  int refcount;
420  owl_viewwin *vwin;
421  int winactive;
422  int pid;                      /* or 0 if it has terminated */
423  int rfd; 
424} owl_popexec;
425
426typedef struct _owl_messagelist {
427  owl_list list;
428} owl_messagelist;
429
430typedef struct _owl_regex {
431  int negate;
432  char *string;
433  regex_t re;
434} owl_regex;
435
436typedef struct _owl_filterelement {
437  int (*match_message)(struct _owl_filterelement *fe, owl_message *m);
438  /* Append a string representation of the filterelement onto buf*/
439  void (*print_elt)(struct _owl_filterelement *fe, char * buf);
440  /* Operands for and,or,not*/
441  struct _owl_filterelement *left, *right;
442  /* For regex filters*/
443  owl_regex re;
444  /* Used by regexes, filter references, and perl */
445  char *field;
446} owl_filterelement;
447
448typedef struct _owl_filter {
449  char *name;
450  int polarity;
451  owl_filterelement * root;
452  int fgcolor;
453  int bgcolor;
454  int cachedmsgid;  /* cached msgid: should move into view eventually */
455} owl_filter;
456
457typedef struct _owl_view {
458  char *name;
459  owl_filter *filter;
460  owl_messagelist ml;
461  owl_style *style;
462} owl_view;
463
464typedef struct _owl_history {
465  owl_list hist;
466  int cur;
467  int touched;
468  int partial;
469  int repeats;
470} owl_history;
471
472typedef struct _owl_editwin {
473  char *buff;
474  owl_history *hist;
475  int bufflen;
476  int allocated;
477  int buffx, buffy;
478  int topline;
479  int winlines, wincols, fillcol, wrapcol;
480  WINDOW *curswin;
481  int style;
482  int lock;
483  int dotsend;
484  int echochar;
485
486  char *command;
487  void (*callback)(struct _owl_editwin*);
488  void *cbdata;
489} owl_editwin;
490
491typedef struct _owl_mux {
492  int handle;                   /* for referencing this */
493  int active;                   /* has this been deleted? */
494  int fd;                     
495  int eventmask;                /* bitmask of OWL_MUX_* */
496  void (*handler_fn)(int handle, int fd, int eventmask, void *data);
497  void *data;                   /* data reference to pass to callback */
498} owl_mux;
499typedef owl_list owl_muxevents;
500
501typedef struct _owl_keybinding {
502  int  *j;                      /* keypress stack (0-terminated) */ 
503  int   type;                   /* command or function? */
504  char *desc;                   /* description (or "*user*") */
505  char *command;                /* command, if of type command */
506  void (*function_fn)(void);    /* function ptr, if of type function */
507} owl_keybinding;
508
509typedef struct _owl_keymap {
510  char     *name;               /* name of keymap */
511  char     *desc;               /* description */
512  owl_list  bindings;           /* key bindings */
513  struct _owl_keymap *submap;   /* submap */
514  void (*default_fn)(owl_input j);      /* default action (takes a keypress) */
515  void (*prealways_fn)(owl_input  j);   /* always called before a keypress is received */
516  void (*postalways_fn)(owl_input  j);  /* always called after keypress is processed */
517} owl_keymap;
518
519typedef struct _owl_keyhandler {
520  owl_dict  keymaps;            /* dictionary of keymaps */
521  owl_keymap *active;           /* currently active keymap */
522  int       in_esc;             /* escape pressed? */
523  int       kpstack[OWL_KEYMAP_MAXSTACK+1]; /* current stack of keypresses */
524  int       kpstackpos;         /* location in stack (-1 = none) */
525} owl_keyhandler;
526
527typedef struct _owl_buddy {
528  int proto;
529  char *name;
530  int isidle;
531  int idlesince;
532} owl_buddy;
533
534typedef struct _owl_buddylist {
535  owl_list buddies;
536} owl_buddylist;
537
538typedef struct _owl_zbuddylist {
539  owl_list zusers;
540} owl_zbuddylist;
541
542typedef struct _owl_timer {
543  int direction;
544  time_t starttime;
545  int start;
546} owl_timer;
547
548typedef struct _owl_errqueue {
549  owl_list errlist;
550} owl_errqueue;
551
552typedef struct _owl_colorpair_mgr {
553  int next;
554  short **pairs;
555} owl_colorpair_mgr;
556
557typedef struct _owl_obarray {
558  owl_list strings;
559} owl_obarray;
560
561typedef struct _owl_dispatch {
562  int fd;           /* FD to watch for dispatch. */
563  void (*cfunc)();  /* C function to dispatch to. */
564  SV *pfunc;        /* Perl function to dispatch to. */
565} owl_dispatch;
566
567typedef struct _owl_global {
568  owl_mainwin mw;
569  owl_popwin pw;
570  owl_history cmdhist;          /* command history */
571  owl_history msghist;          /* outgoing message history */
572  owl_keyhandler kh;
573  owl_list filterlist;
574  owl_list puntlist;
575  owl_muxevents muxevents;      /* fds to dispatch on */
576  owl_vardict vars;
577  owl_cmddict cmds;
578  owl_context ctx;
579  owl_errqueue errqueue;
580  int lines, cols;
581  int curmsg, topmsg;
582  int curmsg_vert_offset;
583  owl_view current_view;
584  owl_messagelist msglist;
585  WINDOW *recwin, *sepwin, *msgwin, *typwin;
586  int needrefresh;
587  int rightshift;
588  int resizepending;
589  int recwinlines;
590  int typwinactive;
591  char *thishost;
592  char *homedir;
593  char *confdir;
594  char *startupfile;
595  int direction;
596  int zaway;
597  char *cur_zaway_msg;
598  int haveconfig;
599  int config_format;
600  void *buffercbdata;
601  owl_editwin tw;
602  owl_viewwin vw;
603  void *perl;
604  int debug;
605  time_t starttime;
606  time_t lastinputtime;
607  char *startupargs;
608  int userclue;
609  int nextmsgid;
610  int hascolors;
611  int colorpairs;
612  owl_colorpair_mgr cpmgr;
613  int searchactive;
614  int newmsgproc_pid;
615  int malloced, freed;
616  char *searchstring;
617  aim_session_t aimsess;
618  aim_conn_t bosconn;
619  owl_timer aim_noop_timer;
620  owl_timer aim_ignorelogin_timer;
621  owl_timer aim_buddyinfo_timer;
622  int aim_loggedin;         /* true if currently logged into AIM */
623  int aim_doprocessing;     /* true if we should process AIM events (like pending login) */
624  char *aim_screenname;     /* currently logged in AIM screen name */
625  char *aim_screenname_for_filters;     /* currently logged in AIM screen name */
626  owl_buddylist buddylist;  /* list of logged in AIM buddies */
627  owl_list messagequeue;    /* for queueing up aim and other messages */
628  owl_dict styledict;       /* global dictionary of available styles */
629  char *response;           /* response to the last question asked */
630  int havezephyr;
631  int haveaim;
632  int got_err_signal;       /* 1 if we got an unexpected signal */
633  siginfo_t err_signal_info;
634  owl_zbuddylist zbuddies;
635  owl_timer zephyr_buddycheck_timer;
636  struct termios startup_tio;
637  owl_obarray obarray;
638  owl_list dispatchlist;
639} owl_global;
640
641/* globals */
642extern owl_global g;
643
644#include "owl_prototypes.h"
645
646/* these are missing from the zephyr includes for some reason */
647#ifdef HAVE_LIBZEPHYR
648int ZGetSubscriptions(ZSubscription_t *, int *);
649int ZGetLocations(ZLocations_t *,int *);
650#endif
651
652#endif /* INC_OWL_H */
Note: See TracBrowser for help on using the repository browser.