Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / libs / openurl / library / morphos.c
blobe9836a2c5c4be4a0cf822640b03d29a70cc118bd
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>
14 #include "lib.h"
16 /**************************************************************************/
18 ULONG LIB_URL_OpenA(void)
20 return URL_OpenA((UBYTE *)REG_A0,(struct TagItem *)REG_A1);
23 /**************************************************************************/
25 struct URL_Prefs *LIB_URL_GetPrefsA(void)
27 return URL_GetPrefsA((struct TagItem *)REG_A0);
30 /**************************************************************************/
32 struct URL_Prefs * LIB_URL_OldGetPrefs(void)
34 return URL_OldGetPrefs();
37 /**************************************************************************/
39 void LIB_URL_FreePrefsA(void)
41 return URL_FreePrefsA((struct URL_Prefs *)REG_A0,(struct TagItem *)REG_A1);
44 /**************************************************************************/
46 void LIB_URL_OldFreePrefs(void)
48 return URL_OldFreePrefs((struct URL_Prefs *)REG_A0);
51 /**************************************************************************/
53 ULONG LIB_URL_SetPrefsA(void)
55 return URL_SetPrefsA((struct URL_Prefs *)REG_A0,(struct TagItem *)REG_A1);
58 /**************************************************************************/
60 ULONG LIB_URL_OldSetPrefs(void)
62 return URL_OldSetPrefs((struct URL_Prefs *)REG_A0,(ULONG)REG_D0);
65 /**************************************************************************/
67 struct URL_Prefs * LIB_URL_OldGetDefaultPrefs(void)
69 return URL_OldGetDefaultPrefs();
72 /**************************************************************************/
74 ULONG LIB_URL_LaunchPrefsAppA(void)
76 return URL_LaunchPrefsAppA((struct TagItem *)REG_A0);
79 /**************************************************************************/
81 ULONG LIB_URL_OldLaunchPrefsApp(void)
83 return URL_OldLaunchPrefsApp();
86 /**************************************************************************/
88 ULONG LIB_URL_GetAttr(void)
90 return URL_GetAttr((ULONG)REG_D0,(LONG *)REG_A0);
93 /**************************************************************************/