2006-04-25 Hendrik Brandt <heb@gnome-de.org>
[beagle.git] / wrappers / python / gen-defs.sh
blob5e781e7551b2a58a64f251e73d9244f13362625d
1 #!/bin/sh
3 python `pkg-config pygtk-2.0 --variable=codegendir`/h2def.py \
4 ../../libbeagle/beagle/*.h \
5 > beagle.defs.new
7 # Remove gtypes from the enums
8 ./fix.pl beagle.defs.new > beagle.defs
9 rm beagle.defs.new
11 # Add the BeagleHit, BeagleProperty and BeagleTimestamp pointers
12 cat >> beagle.defs << EOF
13 ;; Pointer types
14 (define-pointer Hit
15 (in-module "Beagle")
16 (c-name "BeagleHit")
17 (gtype-id "BEAGLE_TYPE_HIT")
20 (define-pointer Property
21 (in-module "Beagle")
22 (c-name "BeagleProperty")
23 (gtype-id "BEAGLE_TYPE_PROPERTY")
26 (define-pointer Timestamp
27 (in-module "Beagle")
28 (c-name "BeagleTimestamp")
29 (gtype-id "BEAGLE_TYPE_TIMESTAMP")
31 EOF