You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write LUA bindings of rocket and was not able to expose set_io_cb to the LUA-side for the following reasons:
Why does save_track not use the device io callbacks the same way as the read_track_data? This looks like an oversight and the sync_io_cb should have method write too:
I would need a way to pass userdata to the io callback (void *). I would need this for making a LUA-bindings of the rocket, as when I make the call back to LUA, I need a pointer to lua_State*, which gives access to the LUA virtual machine instance.
I think it could be even the same cb_param as is passed to the sync_update, but I'm not sure if it would be better to be a separate parameter:
I'm trying to write LUA bindings of rocket and was not able to expose set_io_cb to the LUA-side for the following reasons:
rocket/lib/device.c
Line 374 in 147682c
void *
). I would need this for making a LUA-bindings of the rocket, as when I make the call back to LUA, I need a pointer to lua_State*, which gives access to the LUA virtual machine instance.I think it could be even the same cb_param as is passed to the sync_update, but I'm not sure if it would be better to be a separate parameter:
rocket/lib/device.c
Line 544 in 147682c
The cb_param would have to be passed to any functions that do I/O.
The text was updated successfully, but these errors were encountered: