static DFBResult IDirectFBWindow_SetKeySelection( IDirectFBWindow *thiz, DFBWindowKeySelection selection, const DFBInputDeviceKeySymbol *keys, unsigned int num_keys ) { DIRECT_INTERFACE_GET_DATA(IDirectFBWindow) D_DEBUG_AT( IDirectFB_Window, "%s()\n", __FUNCTION__ ); /* What a lovely switch */ switch (selection) { case DWKS_ALL: case DWKS_NONE: break; case DWKS_LIST: if (!keys || num_keys == 0) default: return DFB_INVARG; } if (data->destroyed) return DFB_DESTROYED; return dfb_window_set_key_selection( data->window, selection, keys, num_keys ); }
DFBResult IWindow_Real::SetKeySelection( DFBWindowKeySelection selection, const DFBInputDeviceKeySymbol *keys, u32 num_keys ) { D_DEBUG_AT( Core_Window, "IWindow_Real::%s( %p )\n", __FUNCTION__, obj ); D_MAGIC_ASSERT( obj, CoreWindow ); return dfb_window_set_key_selection( obj, selection, keys, num_keys ); }