GNOME Bugzilla – Bug 621504
Updated vala binding for the RB and RHYTHMDB namespaces
Last modified: 2010-06-14 07:41:08 UTC
Created attachment 163550 [details] Updated RB namespace vapi Managed to hack around a bit with vapiget and that other tool to get some generated output that I then hand tweaked for the RhythmDB and RB namespaces. Of note: vapi parsing fails when having the class method parameters fully qualified with the namespace when there is a class with the same name as the namespace. e.g. namespace RhythmDB { public class RhythmDB : GObject { // methods } public class Entry { public Entry( RhythmDB.RhythmDB db, ...); } } This is why RhythmDB class is renamed to RhythmDatabase in the rhythmdb.vapi file. Both .vapi files are attached. I haven't been able to test all of the functionality yet, I have tested: * Start/stop RB RefString system * Start/stop RB file helper system * Loading RhythmDB * Executing query against the DB and iterating over results to fetch titles etc * Working signals (load-complete, query complete) Attached are the two .vapi files. I'm still working on a clean way to include my sample code inside the rhythmbox bindings area. Any ideas appreciated.
Created attachment 163551 [details] Updated RhythmDB namespace vapi
Please ignore. Sorry just spotted this bug https://bugzilla.gnome.org/show_bug.cgi?id=621246 With vala bindings. *** This bug has been marked as a duplicate of bug 621246 ***