HIDInterface* hid_new_HIDInterface() { TRACE("creating a new HIDInterface instance..."); HIDInterface* ret = (HIDInterface*)malloc(sizeof(HIDInterface)); if (!ret) { ERROR("could not allocate memory for HIDInterface instance."); return 0; } hid_reset_HIDInterface(ret); return ret; }
/* -------------------------------------------------------------------------- */ static void usbhid_reset(t_usbhid *x) { if(x->debug_level) post("usbhid_reset"); hid_reset_HIDInterface(x->x_hidinterface); }