comparison src/notify.h @ 10209:9e0b98c458b1

[gaim-migrate @ 11331] gaim_notify_uri now needs trusted parameter to indicate whether the source of the uri is trusted. This helps us avoid the security risks involved in blindly executing untrusted local file URIs in windows. This fixes the MSN open mail bug on windows. committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Fri, 19 Nov 2004 20:18:14 +0000
parents cc68a8c6e741
children 95ca0db2d01d
comparison
equal deleted inserted replaced
10208:cbdce0acbbe6 10209:9e0b98c458b1
76 GCallback cb, void *user_data); 76 GCallback cb, void *user_data);
77 void *(*notify_userinfo)(GaimConnection *gc, const char *who, 77 void *(*notify_userinfo)(GaimConnection *gc, const char *who,
78 const char *title, const char *primary, 78 const char *title, const char *primary,
79 const char *secondary, const char *text, 79 const char *secondary, const char *text,
80 GCallback cb, void *user_data); 80 GCallback cb, void *user_data);
81 void *(*notify_uri)(const char *uri); 81 void *(*notify_uri)(const char *uri, gboolean trusted);
82 82
83 void (*close_notify)(GaimNotifyType type, void *ui_handle); 83 void (*close_notify)(GaimNotifyType type, void *ui_handle);
84 84
85 } GaimNotifyUiOps; 85 } GaimNotifyUiOps;
86 86
200 GCallback cb, void *user_data); 200 GCallback cb, void *user_data);
201 201
202 /** 202 /**
203 * Opens a URI or somehow presents it to the user. 203 * Opens a URI or somehow presents it to the user.
204 * 204 *
205 * @param handle The plugin or connection handle. 205 * @param handle The plugin or connection handle.
206 * @param uri The URI to display or go to. 206 * @param uri The URI to display or go to.
207 * @param trusted The source of the URI is trusted.
207 * 208 *
208 * @return A UI-specific handle, if any. This may only be presented if 209 * @return A UI-specific handle, if any. This may only be presented if
209 * the UI code displays a dialog instead of a webpage, or something 210 * the UI code displays a dialog instead of a webpage, or something
210 * similar. 211 * similar.
211 */ 212 */
212 void *gaim_notify_uri(void *handle, const char *uri); 213 void *gaim_notify_uri(void *handle, const char *uri, gboolean trusted);
213 214
214 /** 215 /**
215 * Closes a notification. 216 * Closes a notification.
216 * 217 *
217 * This should be used only by the UI operation functions and part of the 218 * This should be used only by the UI operation functions and part of the