diff -r b758351d191f -r cc9b7e14412b web/lib/arch/osx/jcc/sources/jccfuncs.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/arch/osx/jcc/sources/jccfuncs.h Tue May 25 02:43:45 2010 +0200 @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef _jccfuncs_H +#define _jccfuncs_H + +#ifdef PYTHON + +PyObject *__initialize__(PyObject *module, PyObject *args, PyObject *kwds); +PyObject *initVM(PyObject *self, PyObject *args, PyObject *kwds); +PyObject *getVMEnv(PyObject *self); +PyObject *_set_exception_types(PyObject *self, PyObject *args); +PyObject *_set_function_self(PyObject *self, PyObject *args); +PyObject *findClass(PyObject *self, PyObject *args); +PyObject *JArray_Type(PyObject *self, PyObject *arg); + +PyMethodDef jcc_funcs[] = { + { "initVM", (PyCFunction) __initialize__, + METH_VARARGS | METH_KEYWORDS, NULL }, + { "getVMEnv", (PyCFunction) getVMEnv, + METH_NOARGS, NULL }, + { "findClass", (PyCFunction) findClass, + METH_VARARGS, NULL }, + { "_set_exception_types", (PyCFunction) _set_exception_types, + METH_VARARGS, NULL }, + { "_set_function_self", (PyCFunction) _set_function_self, + METH_VARARGS, NULL }, + { "JArray", (PyCFunction) JArray_Type, + METH_O, NULL }, + { NULL, NULL, 0, NULL } +}; + +#endif + +#endif /* _jccfuncs_H */