Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/pulseaudio-module-xrdp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt335672 <30179339+matt335672@users.noreply.github.com>2021-10-20 13:26:57 +0300
committerGitHub <noreply@github.com>2021-10-20 13:26:57 +0300
commit22b84e312e3aaea7324121ae9a2c1ca1a014b2cd (patch)
treee702f1e54c14bfc27d2c936c0a2a816d3b4b1fbf
parentb4d03c5545c1306461afb8fc0b14585d29840a4d (diff)
parent9fd159e88e948c20202a0e00d31698ef3ea1cbc8 (diff)
Merge pull request #63 from matt335672/version_info
Add version logging to modules
-rw-r--r--src/module-xrdp-sink.c11
-rw-r--r--src/module-xrdp-source.c15
2 files changed, 26 insertions, 0 deletions
diff --git a/src/module-xrdp-sink.c b/src/module-xrdp-sink.c
index 71b20fd..91c56d9 100644
--- a/src/module-xrdp-sink.c
+++ b/src/module-xrdp-sink.c
@@ -436,6 +436,17 @@ int pa__init(pa_module*m) {
pa_assert(m);
+ /* Check the runtime library version matches the build version */
+ if (strcmp(pa_get_library_version(), pa_get_headers_version()) == 0)
+ {
+ pa_log_notice("Build library version %s", pa_get_headers_version());
+ }
+ else
+ {
+ pa_log_warn("Runtime version '%s' differs from build version '%s'",
+ pa_get_library_version(), pa_get_headers_version());
+ }
+
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments.");
goto fail;
diff --git a/src/module-xrdp-source.c b/src/module-xrdp-source.c
index de4ef48..d31b03b 100644
--- a/src/module-xrdp-source.c
+++ b/src/module-xrdp-source.c
@@ -396,6 +396,21 @@ int pa__init(pa_module *m) {
pa_assert(m);
+ /* Check the runtime library version matches the build version */
+ if (strcmp(pa_get_library_version(), pa_get_headers_version()) == 0)
+ {
+ pa_log_notice("Build library version %s", pa_get_headers_version());
+ }
+ else
+ {
+ pa_log_warn("Runtime version '%s' differs from build version '%s'",
+ pa_get_library_version(), pa_get_headers_version());
+ }
+
+ if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
+ pa_log("Failed to parse module arguments.");
+ goto fail;
+ }
if (!(ma = pa_modargs_new(m->argument, valid_modargs))) {
pa_log("Failed to parse module arguments.");
goto fail;