- Timestamp:
- Mar 28, 2009, 5:00:34 PM (16 years ago)
- Branches:
- owl
- Children:
- 4de643d
- Parents:
- 5189631
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
owl.h
re74e573 rdab82f29 1 /* Copyright (c) 2004 James Kretchmar. All rights reserved.1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 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 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 26 19 * 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. 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 38 23 */ 39 24 … … 60 45 static const char owl_h_fileIdent[] = "$Id$"; 61 46 62 #define OWL_VERSION 2.1.1 163 #define OWL_VERSION_STRING "2.1.1 1"47 #define OWL_VERSION 2.1.12 48 #define OWL_VERSION_STRING "2.1.12-pre-6" 64 49 65 50 /* Feature that is being tested to redirect stderr through a pipe. … … 192 177 #define OWL_WEBZEPHYR_OPCODE "webzephyr" 193 178 194 #define OWL_REGEX_QUOTECHARS "+*.?[]^\\ "179 #define OWL_REGEX_QUOTECHARS "+*.?[]^\\${}()" 195 180 #define OWL_REGEX_QUOTEWITH "\\" 196 181 … … 371 356 } owl_popwin; 372 357 358 typedef struct _owl_dispatch { 359 int fd; /* FD to watch for dispatch. */ 360 int needs_gc; 361 void (*cfunc)(struct _owl_dispatch*); /* C function to dispatch to. */ 362 void (*destroy)(struct _owl_dispatch*); /* Destructor */ 363 void *data; 364 } owl_dispatch; 365 373 366 typedef struct _owl_popexec { 374 367 int refcount; … … 376 369 int winactive; 377 370 int pid; /* or 0 if it has terminated */ 378 int rfd;371 owl_dispatch dispatch; 379 372 } owl_popexec; 380 373 … … 434 427 } owl_editwin; 435 428 436 typedef struct _owl_mux {437 int handle; /* for referencing this */438 int active; /* has this been deleted? */439 int fd;440 int eventmask; /* bitmask of OWL_MUX_* */441 void (*handler_fn)(int handle, int fd, int eventmask, void *data);442 void *data; /* data reference to pass to callback */443 } owl_mux;444 typedef owl_list owl_muxevents;445 446 429 typedef struct _owl_keybinding { 447 430 int *j; /* keypress stack (0-terminated) */ … … 503 486 owl_list filterlist; 504 487 owl_list puntlist; 505 owl_muxevents muxevents; /* fds to dispatch on */506 488 owl_vardict vars; 507 489 owl_cmddict cmds; … … 563 545 owl_timer zephyr_buddycheck_timer; 564 546 struct termios startup_tio; 547 owl_list dispatchlist; 565 548 } owl_global; 566 549
Note: See TracChangeset
for help on using the changeset viewer.