web/lib/arch/osx/jcc/sources/jccfuncs.h
changeset 29 cc9b7e14412b
equal deleted inserted replaced
28:b758351d191f 29:cc9b7e14412b
       
     1 /*
       
     2  *   Licensed under the Apache License, Version 2.0 (the "License");
       
     3  *   you may not use this file except in compliance with the License.
       
     4  *   You may obtain a copy of the License at
       
     5  *
       
     6  *       http://www.apache.org/licenses/LICENSE-2.0
       
     7  *
       
     8  *   Unless required by applicable law or agreed to in writing, software
       
     9  *   distributed under the License is distributed on an "AS IS" BASIS,
       
    10  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       
    11  *   See the License for the specific language governing permissions and
       
    12  *   limitations under the License.
       
    13  */
       
    14 
       
    15 #ifndef _jccfuncs_H
       
    16 #define _jccfuncs_H
       
    17 
       
    18 #ifdef PYTHON
       
    19 
       
    20 PyObject *__initialize__(PyObject *module, PyObject *args, PyObject *kwds);
       
    21 PyObject *initVM(PyObject *self, PyObject *args, PyObject *kwds);
       
    22 PyObject *getVMEnv(PyObject *self);
       
    23 PyObject *_set_exception_types(PyObject *self, PyObject *args);
       
    24 PyObject *_set_function_self(PyObject *self, PyObject *args);
       
    25 PyObject *findClass(PyObject *self, PyObject *args);
       
    26 PyObject *JArray_Type(PyObject *self, PyObject *arg);
       
    27 
       
    28 PyMethodDef jcc_funcs[] = {
       
    29     { "initVM", (PyCFunction) __initialize__,
       
    30       METH_VARARGS | METH_KEYWORDS, NULL },
       
    31     { "getVMEnv", (PyCFunction) getVMEnv,
       
    32       METH_NOARGS, NULL },
       
    33     { "findClass", (PyCFunction) findClass,
       
    34       METH_VARARGS, NULL },
       
    35     { "_set_exception_types", (PyCFunction) _set_exception_types,
       
    36       METH_VARARGS, NULL },
       
    37     { "_set_function_self", (PyCFunction) _set_function_self,
       
    38       METH_VARARGS, NULL },
       
    39     { "JArray", (PyCFunction) JArray_Type,
       
    40       METH_O, NULL },
       
    41     { NULL, NULL, 0, NULL }
       
    42 };
       
    43 
       
    44 #endif
       
    45 
       
    46 #endif /* _jccfuncs_H */