Home
last modified time | relevance | path

Searched refs:new_callback (Results 1 – 5 of 5) sorted by relevance

/external/libusb/libusb/
Dhotplug.c237 struct libusb_hotplug_callback *new_callback; in libusb_hotplug_register_callback() local
256 new_callback = calloc(1, sizeof(*new_callback)); in libusb_hotplug_register_callback()
257 if (!new_callback) { in libusb_hotplug_register_callback()
261 new_callback->flags = (uint8_t)events; in libusb_hotplug_register_callback()
263 new_callback->flags |= USBI_HOTPLUG_VENDOR_ID_VALID; in libusb_hotplug_register_callback()
264 new_callback->vendor_id = (uint16_t)vendor_id; in libusb_hotplug_register_callback()
267 new_callback->flags |= USBI_HOTPLUG_PRODUCT_ID_VALID; in libusb_hotplug_register_callback()
268 new_callback->product_id = (uint16_t)product_id; in libusb_hotplug_register_callback()
271 new_callback->flags |= USBI_HOTPLUG_DEV_CLASS_VALID; in libusb_hotplug_register_callback()
272 new_callback->dev_class = (uint8_t)dev_class; in libusb_hotplug_register_callback()
[all …]
/external/python/cpython3/Modules/
Datexitmodule.c136 atexit_callback *new_callback; in atexit_register() local
164 new_callback = PyMem_Malloc(sizeof(atexit_callback)); in atexit_register()
165 if (new_callback == NULL) in atexit_register()
168 new_callback->args = PyTuple_GetSlice(args, 1, PyTuple_GET_SIZE(args)); in atexit_register()
169 if (new_callback->args == NULL) { in atexit_register()
170 PyMem_Free(new_callback); in atexit_register()
173 new_callback->func = func; in atexit_register()
174 new_callback->kwargs = kwargs; in atexit_register()
178 modstate->atexit_callbacks[modstate->ncallbacks++] = new_callback; in atexit_register()
/external/python/cpython3/Lib/idlelib/
DREADME.txt126 New File # eEW.new_callback
Deditor.py202 text.bind("<<open-new-window>>", self.new_callback)
368 def new_callback(self, event): member in EditorWindow
/external/python/cpython2/Lib/idlelib/
DEditorWindow.py253 text.bind("<<open-new-window>>", self.new_callback)
366 def new_callback(self, event): member in EditorWindow