diff options
Diffstat (limited to 'subsurface-core')
-rw-r--r-- | subsurface-core/qthelper.cpp | 2 | ||||
-rw-r--r-- | subsurface-core/version.c | 7 | ||||
-rw-r--r-- | subsurface-core/version.h | 4 |
3 files changed, 12 insertions, 1 deletions
diff --git a/subsurface-core/qthelper.cpp b/subsurface-core/qthelper.cpp index d1c6a8826..72221eacf 100644 --- a/subsurface-core/qthelper.cpp +++ b/subsurface-core/qthelper.cpp @@ -460,7 +460,7 @@ QString getUserAgent() // fill in the system data - use ':' as separator // replace all other ':' with ' ' so that this is easy to parse #ifdef SUBSURFACE_MOBILE - QString userAgent = QString("Subsurface-mobile:%1:").arg(subsurface_canonical_version()); + QString userAgent = QString("Subsurface-mobile:%1(%2):").arg(subsurface_mobile_version()).arg(subsurface_canonical_version()); #else QString userAgent = QString("Subsurface:%1:").arg(subsurface_canonical_version()); #endif diff --git a/subsurface-core/version.c b/subsurface-core/version.c index 98207efe2..764e4d2db 100644 --- a/subsurface-core/version.c +++ b/subsurface-core/version.c @@ -9,3 +9,10 @@ const char *subsurface_canonical_version(void) { return CANONICAL_VERSION_STRING; } + +#ifdef SUBSURFACE_MOBILE +const char *subsurface_mobile_version(void) +{ + return MOBILE_VERSION_STRING; +} +#endif diff --git a/subsurface-core/version.h b/subsurface-core/version.h index 98385e970..0a3204bd9 100644 --- a/subsurface-core/version.h +++ b/subsurface-core/version.h @@ -8,6 +8,10 @@ extern "C" { const char *subsurface_git_version(void); const char *subsurface_canonical_version(void); +#ifdef SUBSURFACE_MOBILE +const char *subsurface_mobile_version(void); +#endif + #ifdef __cplusplus } #endif |