[maemo-commits] [maemo-commits] r10745 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Mar 23 15:57:20 EET 2007
- Previous message: [maemo-commits] r10744 - projects/haf/trunk/hildon-fm/debian
- Next message: [maemo-commits] r10746 - projects/haf/trunk/atk1.0/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: moimart
Date: 2007-03-23 15:57:19 +0200 (Fri, 23 Mar 2007)
New Revision: 10745
Modified:
projects/haf/trunk/hildon-desktop/ChangeLog
projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-plugin.h
projects/haf/trunk/hildon-desktop/libhildondesktop/libhildondesktop.h
Log:
* libhildondesktop/hildon-desktop-plugin.h:
- new macro HILDON_DESKTOP_PLUGIN_SYMBOLS_CODE to add code in load
and unload symbols.
* libhildondesktop/libhildondesktop.h
- new macro HD_DEFINE_PLUGIN_EXTENDED to register the plugin and
add code in load and unload exported symbols.
* ChangeLog updated.
Modified: projects/haf/trunk/hildon-desktop/ChangeLog
===================================================================
--- projects/haf/trunk/hildon-desktop/ChangeLog 2007-03-23 12:05:52 UTC (rev 10744)
+++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-03-23 13:57:19 UTC (rev 10745)
@@ -1,3 +1,12 @@
+2007-03-23 Moises Martinez <moises.martinez at nokia.com>
+
+ * libhildondesktop/hildon-desktop-plugin.h:
+ - new macro HILDON_DESKTOP_PLUGIN_SYMBOLS_CODE to add code in load
+ and unload symbols.
+ * libhildondesktop/libhildondesktop.h
+ - new macro HD_DEFINE_PLUGIN_EXTENDED to register the plugin and
+ add code in load and unload exported symbols.
+
2007-03-22 Moises Martinez <moises.martinez at nokia.com>
* src/hn-app-switcher.c: Implemented navigation throw swap-key.
Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-plugin.h
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-plugin.h 2007-03-23 12:05:52 UTC (rev 10744)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/hildon-desktop-plugin.h 2007-03-23 13:57:19 UTC (rev 10745)
@@ -75,6 +75,19 @@
{ \
}
+#define HILDON_DESKTOP_PLUGIN_SYMBOLS_CODE(t_n, CODE_LOAD, CODE_UNLOAD) \
+G_MODULE_EXPORT void hildon_desktop_plugin_load (HildonDesktopPlugin *plugin); \
+void hildon_desktop_plugin_load (HildonDesktopPlugin *plugin) \
+{ \
+ hildon_desktop_plugin_add_type (plugin, t_n##_register_type(G_TYPE_MODULE (plugin))); \
+ { CODE_LOAD } \
+} \
+G_MODULE_EXPORT void hildon_desktop_plugin_unload (HildonDesktopPlugin *plugin); \
+void hildon_desktop_plugin_unload (HildonDesktopPlugin *plugin) \
+{ \
+ { CODE_UNLOAD } \
+}
+
G_END_DECLS
#endif /*__HILDON_DESKTOP_PLUGIN_H__*/
Modified: projects/haf/trunk/hildon-desktop/libhildondesktop/libhildondesktop.h
===================================================================
--- projects/haf/trunk/hildon-desktop/libhildondesktop/libhildondesktop.h 2007-03-23 12:05:52 UTC (rev 10744)
+++ projects/haf/trunk/hildon-desktop/libhildondesktop/libhildondesktop.h 2007-03-23 13:57:19 UTC (rev 10745)
@@ -50,6 +50,10 @@
#include <libhildondesktop/libhildonmenu.h>
#include <libhildondesktop/hildon-thumb-menu-item.h>
+#define HD_DEFINE_PLUGIN_EXTENDED(TN, t_n, T_P, CODE_LOAD, CODE_UNLOAD) \
+HD_DEFINE_TYPE_MODULE_EXTENDED (TN, t_n, T_P, 0, {}) \
+HILDON_DESKTOP_PLUGIN_SYMBOLS_CODE (TN, t_n, T_P, 0, CODE_LOAD, CODE_UNLOAD)
+
#define HD_DEFINE_PLUGIN(TN, t_n, T_P) \
HD_DEFINE_TYPE_MODULE_EXTENDED (TN, t_n, T_P, 0, {}) \
HILDON_DESKTOP_PLUGIN_SYMBOLS (t_n)
- Previous message: [maemo-commits] r10744 - projects/haf/trunk/hildon-fm/debian
- Next message: [maemo-commits] r10746 - projects/haf/trunk/atk1.0/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
