summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Guthrie <colin@mageia.org>2011-10-01 12:03:44 +0100
committerColin Guthrie <colin@mageia.org>2011-10-01 13:21:03 +0100
commit7563e0bbb54fbac54e77f3a62d9761a70f3a559c (patch)
treebdf20fa43edf1ef8cd9efbae9b792e32946995f3
parent6a9272f950649fdf3650e23d08320093d6ef7a64 (diff)
libpulse: Always return a three part version number in API calls.
For both the headers and the library we should provide clean, three part strings as this has been what we've previously done in the past and some external systems apparently rely on this format. While it's not something we've officially commented on before, there is no real advantage to us to change it so let's not try to tidy things up too much considering some third party apps (e.g. Skype) seem to dislike a two part version string.
-rw-r--r--src/pulse/context.c2
-rw-r--r--src/pulse/version.h.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/context.c b/src/pulse/context.c
index 25d04a1e9..af144aa83 100644
--- a/src/pulse/context.c
+++ b/src/pulse/context.c
@@ -1281,7 +1281,7 @@ pa_operation* pa_context_set_name(pa_context *c, const char *name, pa_context_su
1281} 1281}
1282 1282
1283const char* pa_get_library_version(void) { 1283const char* pa_get_library_version(void) {
1284 return PACKAGE_VERSION; 1284 return pa_get_headers_version();
1285} 1285}
1286 1286
1287const char* pa_context_get_server(pa_context *c) { 1287const char* pa_context_get_server(pa_context *c) {
diff --git a/src/pulse/version.h.in b/src/pulse/version.h.in
index 7e00c5e11..1be4c753f 100644
--- a/src/pulse/version.h.in
+++ b/src/pulse/version.h.in
@@ -35,7 +35,7 @@ PA_C_DECL_BEGIN
35/** Return the version of the header files. Keep in mind that this is 35/** Return the version of the header files. Keep in mind that this is
36a macro and not a function, so it is impossible to get the pointer of 36a macro and not a function, so it is impossible to get the pointer of
37it. */ 37it. */
38#define pa_get_headers_version() ("@PACKAGE_VERSION@") 38#define pa_get_headers_version() ("@PA_MAJOR@.@PA_MINOR@.0")
39 39
40/** Return the version of the library the current application is 40/** Return the version of the library the current application is
41 * linked to. */ 41 * linked to. */