summaryrefslogtreecommitdiff
path: root/src/lib/efreet/efreet_menu.h
diff options
context:
space:
mode:
authorSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-21 10:39:40 +0200
committerSebastian Dransfeld <sebastian.dransfeld@sintef.no>2013-06-21 10:39:40 +0200
commitaa8565b372c0a2a6a828b624d32a5b69e70bdd7c (patch)
tree3b1ff45cc5dc5a6331c670446d324983108946dc /src/lib/efreet/efreet_menu.h
parent70d491fd687a1d91993b786b41d2f4d415cd2a78 (diff)
efreet: Add data to async request
Diffstat (limited to '')
-rw-r--r--src/lib/efreet/efreet_menu.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/efreet/efreet_menu.h b/src/lib/efreet/efreet_menu.h
index f4b999c074..fa58692cd2 100644
--- a/src/lib/efreet/efreet_menu.h
+++ b/src/lib/efreet/efreet_menu.h
@@ -49,7 +49,7 @@ struct Efreet_Menu
49 * 49 *
50 * @since 1.8 50 * @since 1.8
51 */ 51 */
52typedef void *(*Efreet_Menu_Cb) (Efreet_Menu *menu); 52typedef void *(*Efreet_Menu_Cb) (void *data, Efreet_Menu *menu);
53 53
54/** 54/**
55 * @return Returns no value 55 * @return Returns no value
@@ -79,10 +79,11 @@ EAPI void efreet_menu_file_set(const char *file);
79 * Creates the Efreet_Menu representation of the default menu or 79 * Creates the Efreet_Menu representation of the default menu or
80 * NULL if none found and returns it in the callback. 80 * NULL if none found and returns it in the callback.
81 * @param func function to call when menu is created 81 * @param func function to call when menu is created
82 * @param data user data to return in callback
82 * 83 *
83 * @since 1.8 84 * @since 1.8
84 */ 85 */
85EAPI void efreet_menu_async_get(Efreet_Menu_Cb func); 86EAPI void efreet_menu_async_get(Efreet_Menu_Cb func, void *data);
86 87
87/** 88/**
88 * @return Returns the Efreet_Menu representation of the default menu or 89 * @return Returns the Efreet_Menu representation of the default menu or
@@ -96,10 +97,11 @@ EAPI Efreet_Menu *efreet_menu_get(void);
96 * returns it in the callback 97 * returns it in the callback
97 * @param path The path of the menu to load 98 * @param path The path of the menu to load
98 * @param func function to call when menu is created 99 * @param func function to call when menu is created
100 * @param data user data to return in callback
99 * 101 *
100 * @since 1.8 102 * @since 1.8
101 */ 103 */
102EAPI void efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func); 104EAPI void efreet_menu_async_parse(const char *path, Efreet_Menu_Cb func, void *data);
103 105
104/** 106/**
105 * @param path The path of the menu to load 107 * @param path The path of the menu to load