lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


André de Leiradella wrote:
> Now it's easy to see why I need a pointer to the Lua state inside my
> userdata.

And this is precisely the reason why any well designed API should provide
a void * pointer to a private data structure that is passed on to callbacks.

I suggest you ask the authors of the library to add such a pointer
to the rfbClient structure. There are private data pointers in other
structures, so they certainly know about the issue.