New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / c / Open / main.c
blob87c3e28eb9f93fd8f31af7460bfd52e01678e56d
1 #include <exec/types.h>
2 #include <dos/dos.h>
4 #include <proto/dos.h>
5 #include <proto/workbench.h>
7 #define SH_GLOBAL_DOSBASE TRUE
8 #include <aros/shcommands.h>
10 AROS_SH1
12 Open, 0.1,
13 AROS_SHA(STRPTR, , NAME, /A, NULL)
16 AROS_SHCOMMAND_INIT
18 struct Library *WorkbenchBase = OpenLibrary("workbench.library", 44L);
19 BOOL success = FALSE;
21 if (WorkbenchBase != NULL)
23 success = OpenWorkbenchObject(SHArg(NAME), TAG_DONE);
25 else
27 PutStr("ERROR: Could not open workbench.library v44+.\n");
30 return success ? RETURN_OK : RETURN_FAIL;
32 AROS_SHCOMMAND_EXIT