class library: Reset has been renamed to OnError
[supercollider.git] / bindings / PySCLang / PySCLang_Module.h
blobec5d9bd91dfc19267bb11f5ffcccdf2c2d9778dd
1 /*
2 * File: PYSCLang_Module.h
3 * Project : Psycollider
5 * by:
6 * Benjamin Golinvaux
7 * benjamin.golinvaux@euresys.com
8 * messenger: bgolinvaux@hotmail.com
10 * currently maintained by:
11 * Christopher Frauenberger
12 * frauenberger@iem.at
14 * This program is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU General Public License as
16 * published by the Free Software Foundation; either version 2 of the
17 * License, or (at your option) any later version.
19 * This program is distributed in the hope that it will be useful, but
20 * WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * General Public License for more details.
24 * You should have received a copy of the GNU General Public License
25 * along with this program; if not, write to the Free Software
26 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
27 * USA
31 #ifndef _PYSCLANG_MODULE_
32 #define _PYSCLANG_MODULE_
34 using namespace Py;
36 #include "SCBase.h"
37 #include "PyrObject.h"
38 #include "PyrKernel.h"
39 #include "GC.h"
40 #include "VMGlobals.h"
41 //#include "UserPanel.h"
42 #include "ChangeCounter.h"
44 #include <pthread.h>
46 class PySCLang_Module : public ExtensionModule<PySCLang_Module>
48 public:
49 PySCLang_Module();
50 virtual ~PySCLang_Module() { }
52 static PyObject* scLogSink_s;
53 static PyObject* PyPrOpenWinTextFile_s;
55 void appClock();
57 private:
58 Py::Object sendMain(const Py::Tuple &a);
59 Py::Object compileLibrary(const Py::Tuple &a);
60 Py::Object setCmdLine(const Py::Tuple &a);
61 Py::Object start(const Py::Tuple &a);
62 Py::Object compiledOK__(const Py::Tuple &a);
63 Py::Object setSCLogSink(const Py::Tuple &a);
64 Py::Object setPyPrOpenWinTextFile(const Py::Tuple &a);
67 #endif