source: owl.h @ 62fdd29

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