diff options
| author | Nicholas Piper <nicholas@users.sourceforge.net> | 2007-07-12 13:15:26 +0000 |
|---|---|---|
| committer | Nicholas Piper <nicholas@users.sourceforge.net> | 2007-07-12 13:15:26 +0000 |
| commit | aa869769be7dfceda70774e1cde1f1fd543da9cd (patch) | |
| tree | c312c66ce03ff4939cb01d282f1b1c938d2c0b5e /bindings/python/gpod.i.in | |
| parent | 0d5e974b92f6385f644e736726fcc22a287916e3 (diff) | |
| download | libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.tar.gz libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.tar.xz libgpod-aa869769be7dfceda70774e1cde1f1fd543da9cd.zip | |
Add version and version_info attributes to the Python bindings
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1633 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'bindings/python/gpod.i.in')
| -rw-r--r-- | bindings/python/gpod.i.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bindings/python/gpod.i.in b/bindings/python/gpod.i.in index bd924c9..f8364eb 100644 --- a/bindings/python/gpod.i.in +++ b/bindings/python/gpod.i.in @@ -38,6 +38,13 @@ Python. See the main gpod module for a more traditional Python interface." %enddef +%pythoncode %{ +version_info = (@LIBGPOD_MAJOR_VERSION@, + @LIBGPOD_MINOR_VERSION@, + @LIBGPOD_MICRO_VERSION@) +version = '.'.join(map(str, version_info)) +%} + %module(docstring=DOCSTRING) gpod %{ #include "db-artwork-debug.h" @@ -50,6 +57,7 @@ interface." #include "itdb_private.h" #include <gdk-pixbuf/gdk-pixbuf.h> + /* include prototypes for all functions so builds using * -Wmissing-prototypes don't fail. */ PyObject* sw_get_tracks(Itdb_iTunesDB *itdb); |
