Import of "OpenUrl"
[cake.git] / workbench / libs / openurl / library / lib.h
blob52c182270752441ca27ca44e9970be201b846994
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>
16 #define __NOLIBBASE__
17 #define __USE_SYSBASE
19 #include <proto/exec.h>
20 #include <proto/dos.h>
21 #include <proto/intuition.h>
22 #include <proto/utility.h>
23 #include <proto/iffparse.h>
24 #include <proto/rexxsyslib.h>
26 #include <clib/alib_protos.h>
27 #include <clib/debug_protos.h>
29 #include <libraries/openurl.h>
31 #include <stdlib.h>
32 #include <string.h>
33 #include <ctype.h>
35 #include "base.h"
36 #include <macros.h>
38 /**************************************************************************/
40 #define DEF_ENV "ENV:OpenURL.prefs"
41 #define DEF_ENVARC "ENVARC:OpenURL.prefs"
43 #define DEF_FLAGS (UPF_ISDEFAULTS|UPF_PREPENDHTTP|UPF_DOMAILTO)
45 #define DEF_DefShow TRUE
46 #define DEF_DefBringToFront TRUE
47 #define DEF_DefNewWindow FALSE
48 #define DEF_DefLaunch TRUE
50 // ABA, TO BE ABLE TO COMPILE, DON'T KNOW WHY, SEEMS SOMETHING MESSED IN OPENURL.H
51 #define URL_GetPrefs_Default URL_GetPrefs_Mode
53 /**************************************************************************/
55 struct startMsg
57 struct Message link;
58 UBYTE *port;
59 UBYTE *cmd;
60 ULONG res;
61 ULONG flags;
64 /**************************************************************************/
66 enum
68 LOADPREFS_ENV,
69 LOADPREFS_ENVARC,
71 LOADPREFS_LAST
74 /**************************************************************************/
76 #include "lib_protos.h"
78 /**************************************************************************/