Fix: Memory leak issue when tokenizing string
[platform/upstream/connman.git] / include / plugin.h
old mode 100644 (file)
new mode 100755 (executable)
index 74ac4c2..8d2bb08
@@ -2,7 +2,7 @@
  *
  *  Connection Manager
  *
- *  Copyright (C) 2007-2010  Intel Corporation. All rights reserved.
+ *  Copyright (C) 2007-2012  Intel Corporation. All rights reserved.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License version 2 as
@@ -89,9 +89,9 @@ struct connman_plugin_desc {
 #else
 #define CONNMAN_PLUGIN_DEFINE(name, description, version, priority, init, exit) \
                extern struct connman_debug_desc __start___debug[] \
-                               __attribute__ ((visibility("hidden"))); \
+                               __attribute__ ((weak, visibility("hidden"))); \
                extern struct connman_debug_desc __stop___debug[] \
-                               __attribute__ ((visibility("hidden"))); \
+                               __attribute__ ((weak, visibility("hidden"))); \
                extern struct connman_plugin_desc connman_plugin_desc \
                                __attribute__ ((visibility("default"))); \
                struct connman_plugin_desc connman_plugin_desc = { \