diff options
author | Havoc Pennington <hp@redhat.com> | 2007-08-03 19:05:29 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2007-08-03 19:05:29 +0000 |
commit | d9f2438806d0b2584003a3c3a54234c5a1fac4c2 (patch) | |
tree | 89b25817effe91b19afb89db54cf2a999ec47b6d /dbus/dbus-arch-deps.h.in | |
parent | ae4a1586969aaca534508837830d7d3de4ade070 (diff) |
2007-08-03 Havoc Pennington <hp@redhat.com>
* configure.in: add major/minor/micro version number AC_SUBST
* dbus/dbus-arch-deps.h.in (DBUS_MAJOR_VERSION,
DBUS_MINOR_VERSION, DBUS_MICRO_VERSION, DBUS_VERSION_STRING,
DBUS_VERSION): collection of macros to get version of library we
are compiled against.
* dbus/dbus-misc.c (dbus_get_version): new function, to get
version of library we are linked against at runtime.
Diffstat (limited to 'dbus/dbus-arch-deps.h.in')
-rw-r--r-- | dbus/dbus-arch-deps.h.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dbus/dbus-arch-deps.h.in b/dbus/dbus-arch-deps.h.in index 6d19990e..2a02a7f5 100644 --- a/dbus/dbus-arch-deps.h.in +++ b/dbus/dbus-arch-deps.h.in @@ -51,6 +51,17 @@ typedef unsigned @DBUS_INT32_TYPE@ dbus_uint32_t; typedef @DBUS_INT16_TYPE@ dbus_int16_t; typedef unsigned @DBUS_INT16_TYPE@ dbus_uint16_t; +/* This is not really arch-dependent, but it's not worth + * creating an additional generated header just for this + */ +#define DBUS_MAJOR_VERSION @DBUS_MAJOR_VERSION@ +#define DBUS_MINOR_VERSION @DBUS_MINOR_VERSION@ +#define DBUS_MICRO_VERSION @DBUS_MICRO_VERSION@ + +#define DBUS_VERSION_STRING "@DBUS_VERSION@" + +#define DBUS_VERSION ((@DBUS_MAJOR_VERSION@ << 16) | (@DBUS_MINOR_VERSION@ << 8) | (@DBUS_MICRO_VERSION@)) + DBUS_END_DECLS #endif /* DBUS_ARCH_DEPS_H */ |