plugin: Use weak reference for external debug statements
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Aug 2011 16:15:53 +0000 (09:15 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 16 Aug 2011 16:15:53 +0000 (09:15 -0700)
include/plugin.h

index ca273be..288901b 100644 (file)
@@ -73,9 +73,9 @@ struct ofono_plugin_desc {
 #else
 #define OFONO_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
                extern struct ofono_debug_desc __start___debug[] \
-                               __attribute__ ((visibility("hidden"))); \
+                               __attribute__ ((weak, visibility("hidden"))); \
                extern struct ofono_debug_desc __stop___debug[] \
-                               __attribute__ ((visibility("hidden"))); \
+                               __attribute__ ((weak, visibility("hidden"))); \
                extern struct ofono_plugin_desc ofono_plugin_desc \
                                __attribute__ ((visibility("default"))); \
                struct ofono_plugin_desc ofono_plugin_desc = { \