summaryrefslogtreecommitdiff
path: root/legacy/efreet/src/lib/efreet_desktop_command.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-04-08 11:01:08 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-04-08 11:01:08 +0000
commit71b7acde90fc826669a6afa1bea7ea6af555ad3f (patch)
tree89f0ce84e7d7dd03cbaf7773af275d52aa41eb6f /legacy/efreet/src/lib/efreet_desktop_command.c
parent3441c6f107924af1006acb5d2ac8173018327f6e (diff)
doxy -> h files.
SVN revision: 58487
Diffstat (limited to '')
-rw-r--r--legacy/efreet/src/lib/efreet_desktop_command.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/legacy/efreet/src/lib/efreet_desktop_command.c b/legacy/efreet/src/lib/efreet_desktop_command.c
index 658132c560..2ca0853605 100644
--- a/legacy/efreet/src/lib/efreet_desktop_command.c
+++ b/legacy/efreet/src/lib/efreet_desktop_command.c
@@ -94,9 +94,6 @@ struct Efreet_Desktop_Command_File
94 int pending; 94 int pending;
95}; 95};
96 96
97/**
98 * A unique id for each tmp file created while building a command
99 */
100static int efreet_desktop_command_file_id = 0; 97static int efreet_desktop_command_file_id = 0;
101 98
102static void *efreet_desktop_exec_cb(void *data, Efreet_Desktop *desktop, 99static void *efreet_desktop_exec_cb(void *data, Efreet_Desktop *desktop,
@@ -137,28 +134,12 @@ static char *efreet_string_append_char(char *dest, int *size,
137 int *len, char c); 134 int *len, char c);
138 135
139 136
140/**
141 * @param desktop The desktop file to work with
142 * @param files The files to be substituted into the exec line
143 * @param data The data pointer to pass
144 * @return Returns the Ecore_Exce for @a desktop
145 * @brief Parses the @a desktop exec line and returns an Ecore_Exe.
146 */
147EAPI void 137EAPI void
148efreet_desktop_exec(Efreet_Desktop *desktop, Eina_List *files, void *data) 138efreet_desktop_exec(Efreet_Desktop *desktop, Eina_List *files, void *data)
149{ 139{
150 efreet_desktop_command_get(desktop, files, efreet_desktop_exec_cb, data); 140 efreet_desktop_command_get(desktop, files, efreet_desktop_exec_cb, data);
151} 141}
152 142
153/**
154 * @param desktop the desktop entry
155 * @param files an eina list of file names to execute, as either absolute paths,
156 * relative paths, or uris
157 * @param func a callback to call for each prepared command line
158 * @param data user data passed to the callback
159 * @return Returns the return value of @p func on success or NULL on failure
160 * @brief Get a command to use to execute a desktop entry.
161 */
162EAPI void * 143EAPI void *
163efreet_desktop_command_get(Efreet_Desktop *desktop, Eina_List *files, 144efreet_desktop_command_get(Efreet_Desktop *desktop, Eina_List *files,
164 Efreet_Desktop_Command_Cb func, void *data) 145 Efreet_Desktop_Command_Cb func, void *data)
@@ -166,14 +147,6 @@ efreet_desktop_command_get(Efreet_Desktop *desktop, Eina_List *files,
166 return efreet_desktop_command_progress_get(desktop, files, func, NULL, data); 147 return efreet_desktop_command_progress_get(desktop, files, func, NULL, data);
167} 148}
168 149
169/**
170 * @param desktop the desktop entry
171 * @param files an eina list of local files, as absolute paths, local paths, or file// uris (or NULL to get exec string with no files appended)
172 * @return Returns an eina list of exec strings
173 * @brief Get the command to use to execute a desktop entry
174 *
175 * The returned list and each of its elements must be freed.
176 */
177EAPI Eina_List * 150EAPI Eina_List *
178efreet_desktop_command_local_get(Efreet_Desktop *desktop, Eina_List *files) 151efreet_desktop_command_local_get(Efreet_Desktop *desktop, Eina_List *files)
179{ 152{
@@ -213,17 +186,6 @@ efreet_desktop_command_local_get(Efreet_Desktop *desktop, Eina_List *files)
213 return execs; 186 return execs;
214} 187}
215 188
216/**
217 * @param desktop the desktop entry
218 * @param files an eina list of file names to execute, as either absolute paths,
219 * relative paths, or uris
220 * @param cb_command a callback to call for each prepared command line
221 * @param cb_progress a callback to get progress for the downloads
222 * @param data user data passed to the callback
223 * @return Returns 1 on success or 0 on failure
224 * @brief Get a command to use to execute a desktop entry, and receive progress
225 * updates for downloading of remote URI's passed in.
226 */
227EAPI void * 189EAPI void *
228efreet_desktop_command_progress_get(Efreet_Desktop *desktop, Eina_List *files, 190efreet_desktop_command_progress_get(Efreet_Desktop *desktop, Eina_List *files,
229 Efreet_Desktop_Command_Cb cb_command, 191 Efreet_Desktop_Command_Cb cb_command,