After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 621504 - Updated vala binding for the RB and RHYTHMDB namespaces
Updated vala binding for the RB and RHYTHMDB namespaces
Status: RESOLVED DUPLICATE of bug 621246
Product: rhythmbox
Classification: Other
Component: Plugins (other)
HEAD
Other All
: Normal enhancement
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-14 07:29 UTC by Daniel Hams
Modified: 2010-06-14 07:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Updated RB namespace vapi (7.60 KB, application/octet-stream)
2010-06-14 07:29 UTC, Daniel Hams
Details
Updated RhythmDB namespace vapi (29.21 KB, application/octet-stream)
2010-06-14 07:29 UTC, Daniel Hams
Details

Description Daniel Hams 2010-06-14 07:29:25 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.
Comment 1 Daniel Hams 2010-06-14 07:29:58 UTC
Created attachment 163551 [details]
Updated RhythmDB namespace vapi
Comment 2 Daniel Hams 2010-06-14 07:41:08 UTC
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 ***