diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 14:15:45 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-20 14:15:45 +0000 |
commit | efb2d07ad642bd227e40ed917332f64f82b2553d (patch) | |
tree | 39036cf14f7d75cc4830813bb8048efb0562d4d0 | |
parent | 7f1f7dd44f4b85c1ce027b2ed194d388518ff452 (diff) | |
download | libguestfs-efb2d07ad642bd227e40ed917332f64f82b2553d.tar.gz libguestfs-efb2d07ad642bd227e40ed917332f64f82b2553d.tar.xz libguestfs-efb2d07ad642bd227e40ed917332f64f82b2553d.zip |
lua: Add comment (not fix) for incorrect 'g' argument in callbacks.
Thanks Jerome Vuarand.
-rw-r--r-- | generator/lua.ml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/lua.ml b/generator/lua.ml index 67f18243..3e2e04fb 100644 --- a/generator/lua.ml +++ b/generator/lua.ml @@ -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); |