Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / openurl / library / lib.h
bloba9be727c3cec8e71bf613a5851667be9e182e041
1 /*
2 ** openurl.library - universal URL display and browser
3 ** launcher library
4 **
5 ** Written by Troels Walsted Hansen <troels@thule.no>
6 ** Placed in the public domain.
7 **
8 ** Developed by:
9 ** - Alfonso Ranieri <alforan@tin.it>
10 ** - Stefan Kost <ensonic@sonicpulse.de>
12 ** Ported to OS4 by Alexandre Balaban <alexandre@balaban.name>
15 #ifndef __AROS__
16 #define __NOLIBBASE__
17 #define __USE_SYSBASE
18 #endif
20 #include <proto/exec.h>
21 #include <proto/dos.h>
22 #include <proto/intuition.h>
23 #include <proto/utility.h>
24 #include <proto/iffparse.h>
25 #include <proto/rexxsyslib.h>
27 #include <clib/alib_protos.h>
28 #ifndef __AROS__
29 #include <clib/debug_protos.h>
30 #endif
32 #include <libraries/openurl.h>
34 #include <stdlib.h>
35 #include <string.h>
36 #include <ctype.h>
38 #include "base.h"
40 #include <macros.h>
42 /**************************************************************************/
44 #define DEF_ENV "ENV:OpenURL.prefs"
45 #define DEF_ENVARC "ENVARC:OpenURL.prefs"
47 #define DEF_FLAGS (UPF_ISDEFAULTS|UPF_PREPENDHTTP|UPF_DOMAILTO)
49 #define DEF_DefShow TRUE
50 #define DEF_DefBringToFront TRUE
51 #define DEF_DefNewWindow FALSE
52 #define DEF_DefLaunch TRUE
54 // ABA, TO BE ABLE TO COMPILE, DON'T KNOW WHY, SEEMS SOMETHING MESSED IN OPENURL.H
55 #define URL_GetPrefs_Default URL_GetPrefs_Mode
57 /**************************************************************************/
59 struct startMsg
61 struct Message link;
62 UBYTE *port;
63 UBYTE *cmd;
64 ULONG res;
65 ULONG flags;
68 /**************************************************************************/
70 enum
72 LOADPREFS_ENV,
73 LOADPREFS_ENVARC,
75 LOADPREFS_LAST
78 /**************************************************************************/
80 #include "lib_protos.h"
82 /**************************************************************************/