Home
last modified time | relevance | path

Searched refs:CFUNCTYPE (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython2/Lib/lib2to3/tests/data/
Dinfinite_recursion.py241 ('i2d', CFUNCTYPE(c_int)),
242 ('d2i', CFUNCTYPE(STRING)),
243 ('create', CFUNCTYPE(STRING)),
244 ('destroy', CFUNCTYPE(None)),
272 bio_info_cb = CFUNCTYPE(None, POINTER(bio_st), c_int, STRING, c_int, c_long, c_long)
278 ('bwrite', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
279 ('bread', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
280 ('bputs', CFUNCTYPE(c_int, POINTER(BIO), STRING)),
281 ('bgets', CFUNCTYPE(c_int, POINTER(BIO), STRING, c_int)),
282 ('ctrl', CFUNCTYPE(c_long, POINTER(BIO), c_int, c_long, c_void_p)),
[all …]
/external/python/cpython2/Lib/ctypes/test/
Dtest_random_things.py49 cb = CFUNCTYPE(c_int, c_int)(callback_func)
55 cb = CFUNCTYPE(c_int, c_int)(callback_func)
61 cb = CFUNCTYPE(c_int, c_double)(callback_func)
67 cb = CFUNCTYPE(c_int, c_char_p)(callback_func)
Dtest_returnfuncptrs.py14 get_strchr.restype = CFUNCTYPE(c_char_p, c_char_p, c_char)
29 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(addr)
39 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(("my_strchr", dll))
57 strchr = CFUNCTYPE(c_char_p, c_char_p, c_char)(
Dtest_callbacks.py8 functype = CFUNCTYPE
151 CFUNCTYPE(None)(lambda x=Nasty(): None)
170 CALLBACK = CFUNCTYPE(c_double, c_double)
192 @CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
219 CALLBACK = CFUNCTYPE(c_int, c_int, c_int, c_int, c_int, c_int)
235 CALLBACK = CFUNCTYPE(c_double, c_double, c_double, c_double,
271 CALLBACK = CFUNCTYPE(None, X)
Dtest_simplesubclasses.py21 proto = CFUNCTYPE(None)
35 cb = CFUNCTYPE(None, MyInt)(func)
40 cb = CFUNCTYPE(c_int, c_int)(func)
Dtest_refcounts.py5 MyCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int)
6 OtherCallback = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_ulonglong)
88 proto = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, ctypes.c_int)
Dtest_as_parameter.py12 CALLBACK_FUNCTYPE = CFUNCTYPE
64 CallBack = CFUNCTYPE(c_int, c_int)
77 MyCallback = CFUNCTYPE(c_int, c_int)
112 MyCallback = CFUNCTYPE(c_int, c_int)
130 MyCallback = CFUNCTYPE(c_longlong, c_longlong)
Dtest_funcptr.py8 WINFUNCTYPE = CFUNCTYPE
28 CdeclCallback = CFUNCTYPE(c_int, c_int, c_int)
42 if not WINFUNCTYPE is CFUNCTYPE and os.name != "ce":
Dtest_functions.py16 WINFUNCTYPE = CFUNCTYPE
233 CallBack = CFUNCTYPE(c_int, c_int)
247 MyCallback = CFUNCTYPE(c_int, c_int)
278 MyCallback = CFUNCTYPE(c_int, c_int)
297 MyCallback = CFUNCTYPE(c_longlong, c_longlong)
394 proto = CFUNCTYPE(c_int, RECT, POINT)
Dtest_pointers.py65 PROTOTYPE = CFUNCTYPE(c_int, POINTER(c_int))
188 self.assertEqual(bool(CFUNCTYPE(None)(0)), False)
189 self.assertEqual(bool(CFUNCTYPE(None)(42)), True)
Dtest_pep3118.py180 (CFUNCTYPE(None), "X{}", None, CFUNCTYPE(None)),
Dtest_libc.py17 comparefunc = CFUNCTYPE(c_int, POINTER(c_char), POINTER(c_char))
Dtest_prototypes.py55 prototype = CFUNCTYPE(c_void_p, c_void_p)
214 CFUNCTYPE(None, c_int * 3)(func)
Dtest_pickling.py57 prototype = CFUNCTYPE(c_int)
/external/llvm/bindings/python/llvm/
Ddisassembler.py10 from ctypes import CFUNCTYPE
164 callbacks['op_info'] = CFUNCTYPE(c_int, c_void_p, c_uint64, c_uint64, c_uint64,
166 callbacks['symbol_lookup'] = CFUNCTYPE(c_char_p, c_void_p, c_uint64,
/external/python/cpython2/Lib/ctypes/
D__init__.py75 def CFUNCTYPE(restype, *argtypes, **kw): function
135 WINFUNCTYPE.__doc__ = CFUNCTYPE.__doc__.replace("CFUNCTYPE", "WINFUNCTYPE")
276 CFUNCTYPE(c_int)(lambda: None)
485 memmove = CFUNCTYPE(c_void_p, c_void_p, c_void_p, c_size_t)(_memmove_addr)
488 memset = CFUNCTYPE(c_void_p, c_void_p, c_int, c_size_t)(_memset_addr)
/external/sonivox/jet_tools/JetCreator/
Deas.py108 EAS_METADATA_CBFUNC = CFUNCTYPE(c_int, c_int, c_char_p, c_ulong)
111 EAS_EXT_PRG_CHG_FUNC = CFUNCTYPE(c_int, c_void_p, c_void_p)
112 EAS_EXT_EVENT_FUNC = CFUNCTYPE(c_int, c_void_p, c_void_p)
115 EAS_DECODER_FUNC = CFUNCTYPE(c_void_p, c_void_p, c_int, c_int)
208 LOG_FUNC_TYPE = CFUNCTYPE(c_int, c_int, c_char_p)
/external/vulkan-validation-layers/
Dvk-layer-introspect.py30 VKAPI_FUNCTYPE = ctypes.CFUNCTYPE
/external/clang/bindings/python/clang/
Dcindex.py2897 callbacks['translation_unit_includes'] = CFUNCTYPE(None, c_object_p,
2899 callbacks['cursor_visit'] = CFUNCTYPE(c_int, Cursor, Cursor, py_object)
2900 callbacks['fields_visit'] = CFUNCTYPE(c_int, Cursor, py_object)
/external/python/cpython2/Doc/library/
Dctypes.rst944 The CFUNCTYPE factory function creates types for callback functions using the
972 >>> CMPFUNC = CFUNCTYPE(c_int, POINTER(c_int), POINTER(c_int))
1085 Make sure you keep references to :func:`CFUNCTYPE` objects as long as they
1630 .. function:: CFUNCTYPE(restype, *argtypes, use_errno=False, use_last_error=False)
1647 :func:`WINFUNCTYPE` is the same as :func:`CFUNCTYPE`. The function will