Debian Codegraph @

src/main/c/jpy_jobj.h

raw symbols SCIP
1 /*
2 * Copyright 2015 Brockmann Consult GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * This file was modified by Deephaven Data Labs.
17 *
18 */
19
20 #ifndef JPY_JOBJ_H
21 #define JPY_JOBJ_H
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 #include "jpy_compat.h"
28
29 /**
30 * The Java Object representation in Python.
31 * @see JPy_JArray
32 */
33 typedef struct JPy_JObj
34 {
35 PyObject_HEAD
36 jobject objectRef;
37 }
38 JPy_JObj;
39
40
41 int JObj_Check(PyObject* arg);
42
43 int JByteBuffer_Check(JPy_JType* type);
44
45 PyObject* JObj_New(JNIEnv* jenv, jobject objectRef);
46 PyObject* JObj_FromType(JNIEnv* jenv, JPy_JType* type, jobject objectRef);
47
48 int JObj_InitTypeSlots(PyTypeObject* type, const char* typeName, PyTypeObject* superType);
49
50
51 #ifdef __cplusplus
52 } /* extern "C" */
53 #endif
54 #endif /* !JPY_JOBJ_H */