[tracker/wip/carlosg/test] baz




commit 70013f0fe0b85c282c27f16ee6bfc9850e30149b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Jul 28 19:31:07 2021 +0200

    baz

 src/libtracker-sparql/meson.build             | 4 ++++
 src/libtracker-sparql/tracker-remote-module.c | 5 ++---
 src/libtracker-sparql/tracker-remote-module.h | 6 ++++++
 3 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-sparql/meson.build b/src/libtracker-sparql/meson.build
index af4e9f3a1..7358adfee 100644
--- a/src/libtracker-sparql/meson.build
+++ b/src/libtracker-sparql/meson.build
@@ -105,6 +105,7 @@ if libsoup2.found()
         c_args: tracker_c_args + [
             '-include', 'config.h',
             '-include', 'libtracker-sparql/tracker-private.h',
+            '-include', 'libtracker-sparql/tracker-remote-module.h',
         ],
         vala_args: [
             '--debug',
@@ -116,6 +117,7 @@ if libsoup2.found()
         ],
         install: true,
         install_dir: tracker_internal_libs_dir,
+        gnu_symbol_visibility: 'hidden',
     )
 endif
 
@@ -125,6 +127,7 @@ if libsoup3.found()
         c_args: tracker_c_args + [
             '-include', 'config.h',
             '-include', 'libtracker-sparql/tracker-private.h',
+            '-include', 'libtracker-sparql/tracker-remote-module.h',
         ],
         vala_args: [
             '--debug',
@@ -135,6 +138,7 @@ if libsoup3.found()
         ],
         install: true,
         install_dir: tracker_internal_libs_dir,
+        gnu_symbol_visibility: 'hidden',
     )
 endif
 
diff --git a/src/libtracker-sparql/tracker-remote-module.c b/src/libtracker-sparql/tracker-remote-module.c
index 5dd4a4d7a..128e7acf3 100644
--- a/src/libtracker-sparql/tracker-remote-module.c
+++ b/src/libtracker-sparql/tracker-remote-module.c
@@ -59,10 +59,9 @@ tracker_init_remote (void)
                }
 
                remote_module = g_module_open (module_path,
-                                              G_MODULE_BIND_LAZY |
-                                              G_MODULE_BIND_LOCAL);
+                                              0);
                if (!remote_module)
-                       g_warning ("No module at %s", module_path);
+                       g_warning ("No module at %s: %s", module_path, g_module_error ());
                g_free (module_path);
 
                if (!remote_module)
diff --git a/src/libtracker-sparql/tracker-remote-module.h b/src/libtracker-sparql/tracker-remote-module.h
new file mode 100644
index 000000000..a215b1ecb
--- /dev/null
+++ b/src/libtracker-sparql/tracker-remote-module.h
@@ -0,0 +1,6 @@
+#include <glib.h>
+#include "tracker-version.h"
+
+typedef struct _TrackerRemoteConnection TrackerRemoteConnection;
+
+_TRACKER_EXTERN TrackerRemoteConnection * tracker_remote_connection_new (const gchar *url_base);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]