forgotten commit. disabled until egl is adapted.
[AROS-Contrib.git] / FryingPan / Optical / LibWrapper.cpp
blobf38905052e05c50044b23a8184f4aef6d282247a
1 /*
2 * FryingPan - Amiga CD/DVD Recording Software (User Interface and supporting Libraries only)
3 * Copyright (C) 2001-2011 Tomasz Wiszkowski Tomasz.Wiszkowski at gmail.com
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 2.1
8 * of the License, or (at your option) any later version.
9 *
10 * This program 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 Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #define __NOLIBBASE__
21 #include <GenericLib/Library.h>
22 #include <Startup/Startup.h>
23 #include "Headers.h"
24 #include "Main.h"
25 #include "Config.h"
27 LIBRARY("Optical", "$VER: Optical 2.0 (" __DATE__ " " __TIME__ ") Tomasz Wiszkowski", 2);
29 GATE1(IPTR, DoLibMethodA, IPTR, a0);
30 GATE0(class IOptItem*, OptCreateDisc);
31 LIB_FT_Begin
32 LIB_FT_Function(DoLibMethodA)
33 LIB_FT_Function(OptCreateDisc)
34 LIB_FT_End
36 bool Lib_SetUp()
38 if (false == __setup())
40 return false;
43 return SetUp();
46 void Lib_CleanUp()
48 CleanUp();
49 __cleanup();
52 bool Lib_Acquire()
54 return true;
57 void Lib_Release()
59 if (Cfg != 0)
60 Cfg->onWrite();