GNOME Bugzilla – Bug 139393
Make GnomeVFSGetFileInfoResult and GnomeVFSFindDirectoryResult be real boxed types.
Last modified: 2005-05-06 11:55:36 UTC
This patch adds get_type, copy, and free functions for GnomeVFSGetFileInfoResult and GnomeVFSFindDirectoryResult, so that they are real gtype boxed types. This makes life easier for language bindings. I have also changed the struct declarations to use the GTK+ technique: typedef _Something Something; struct _Something {}; This alllows gnome-vfsmm to use prototype declarations instead of including the gnome-vfs headers in our public headers, like so: typedef struct _Something Something; If you don't mind that here then I'll patch the rest of gnome-vfs to do it too.
Created attachment 26439 [details] [review] gnome-vfs-boxedtypes.patch
The concept looks fine to me, for HEAD (can't add api like that in 2.6). However the patch looks like it has some FIXME comments and is not in gnome-vfs style indentation. The gnome-vfs indentation isn't perfectly consistent atm, but its mostly nautilus-style, and i try to move it towards that. (See nautilus/docs/style-guide.html)
Murray: Any chance that you resend this patch with the suggested fixes? :)
Created attachment 45975 [details] [review] gnome-vfs-boxedtypes2.patch Revised patch. Sorry, the comments were from my C++ code, telling me to submit this patch.
Created attachment 45976 [details] [review] gnome-vfs-boxedtypes3.patch This one even builds.
Commited a slightly diffrent version to cvs HEAD. Thanks Murray and Manny!