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 606172 - gudev-1.0 bindings
gudev-1.0 bindings
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings
0.7.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-01-06 01:09 UTC by Jim Nelson
Modified: 2010-03-22 10:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
VAPI bindings for gudev-1.0 (3.51 KB, text/x-vala)
2010-01-06 01:09 UTC, Jim Nelson
Details
Files used to create gudev-1.0.vapi (metadata, defines, etc.) (598 bytes, application/x-gzip)
2010-01-06 01:11 UTC, Jim Nelson
Details

Description Jim Nelson 2010-01-06 01:09:03 UTC
Created attachment 150875 [details]
VAPI bindings for gudev-1.0

Attached are all the files I've used to create gudev-1.0.vapi.  I'm also attaching the VAPI for perusal.  GUdev is a GObject wrapper around libudev, which is the recommended replacement for HAL.

One note about this binding: gudev.h requires G_UDEV_API_IS_SUBJECT_TO_CHANGE be #defined, otherwise it fires an #error.  I don't know how to do this with vapigen, and am not even sure it should be automated, since the author *really* wants you to know this information.

-- Jim
Comment 1 Jim Nelson 2010-01-06 01:11:47 UTC
Created attachment 150876 [details]
Files used to create gudev-1.0.vapi (metadata, defines, etc.)

$ vala-gen-introspect gudev-1.0 gudev-1.0
$ vapigen --library gudev-1.0 gudev-1.0/gudev-1.0.gi
Comment 2 Jürg Billeter 2010-03-22 10:18:21 UTC
commit d665fb1011182af8b947d94e0b12fe7dd25f5905
Author: Jim Nelson <jim@yorba.org>
Date:   Mon Mar 22 11:17:35 2010 +0100

    Add gudev-1.0 bindings.
    
    Fixes bug 606172.