lua: Add comment (not fix) for incorrect 'g' argument in callbacks.

Thanks Jerome Vuarand.
This commit is contained in:
Richard W.M. Jones
2012-11-20 14:15:45 +00:00
parent 7f1f7dd44f
commit efb2d07ad6

View File

@@ -330,7 +330,10 @@ event_callback_wrapper (guestfs_h *g,
}
/* Call the event handler: event_handler (g, event, eh, flags, buf, array) */
lua_pushlightuserdata (L, u); /* XXX correct? */
/* XXX 'g' parameter is wrong, but fixing it is rather complex. See:
* http://article.gmane.org/gmane.comp.lang.lua.general/95051
*/
lua_pushlightuserdata (L, u);
push_event (L, event);
lua_pushinteger (L, eh);
lua_pushinteger (L, flags);