summaryrefslogtreecommitdiff
path: root/libpurple/request.h
diff options
context:
space:
mode:
authorDaniel Atallah <datallah@pidgin.im>2007-08-24 19:43:41 +0000
committerDaniel Atallah <datallah@pidgin.im>2007-08-24 19:43:41 +0000
commit8a19892ea92ae44205973d2d46f9ee0994ffc1e1 (patch)
tree63e2ee2800b2276cb8f73b9953a33764c56a4c1f /libpurple/request.h
parent31b56b4e3eb6c0615003598b51e33cc6527f391b (diff)
downloadpidgin-8a19892ea92ae44205973d2d46f9ee0994ffc1e1.tar.gz
Fix some conversion warnings about using negative values with unsigned types. There are more, but these were easy fixes. You may think that I'm changing the API, but I'm really not - it was just wrong.
Diffstat (limited to 'libpurple/request.h')
-rw-r--r--libpurple/request.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/libpurple/request.h b/libpurple/request.h
index e00fb0bfa2..b2f9dbae3c 100644
--- a/libpurple/request.h
+++ b/libpurple/request.h
@@ -190,13 +190,13 @@ typedef struct
PurpleAccount *account, const char *who, PurpleConversation *conv,
void *user_data);
void *(*request_choice)(const char *title, const char *primary,
- const char *secondary, unsigned int default_value,
+ const char *secondary, int default_value,
const char *ok_text, GCallback ok_cb,
const char *cancel_text, GCallback cancel_cb,
PurpleAccount *account, const char *who, PurpleConversation *conv,
void *user_data, va_list choices);
void *(*request_action)(const char *title, const char *primary,
- const char *secondary, unsigned int default_action,
+ const char *secondary, int default_action,
PurpleAccount *account, const char *who, PurpleConversation *conv,
void *user_data, size_t action_count,
va_list actions);
@@ -1215,7 +1215,7 @@ void *purple_request_input(void *handle, const char *title,
* @param cancel_cb The callback for the @c Cancel button.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
* @param ... The choices. This argument list should be
* terminated with a NULL parameter.
@@ -1224,7 +1224,7 @@ void *purple_request_input(void *handle, const char *title,
*/
void *purple_request_choice(void *handle, const char *title,
const char *primary, const char *secondary,
- unsigned int default_value,
+ int default_value,
const char *ok_text, GCallback ok_cb,
const char *cancel_text, GCallback cancel_cb,
PurpleAccount *account, const char *who, PurpleConversation *conv,
@@ -1246,7 +1246,7 @@ void *purple_request_choice(void *handle, const char *title,
* @param cancel_cb The callback for the @c Cancel button.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
* @param choices The choices. This argument list should be
* terminated with a @c NULL parameter.
@@ -1255,7 +1255,7 @@ void *purple_request_choice(void *handle, const char *title,
*/
void *purple_request_choice_varg(void *handle, const char *title,
const char *primary, const char *secondary,
- unsigned int default_value,
+ int default_value,
const char *ok_text, GCallback ok_cb,
const char *cancel_text, GCallback cancel_cb,
PurpleAccount *account, const char *who, PurpleConversation *conv,
@@ -1275,7 +1275,7 @@ void *purple_request_choice_varg(void *handle, const char *title,
* @param default_action The default value.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
* @param action_count The number of actions.
* @param ... A list of actions. These are pairs of
@@ -1290,7 +1290,7 @@ void *purple_request_choice_varg(void *handle, const char *title,
*/
void *purple_request_action(void *handle, const char *title,
const char *primary, const char *secondary,
- unsigned int default_action,
+ int default_action,
PurpleAccount *account, const char *who, PurpleConversation *conv,
void *user_data, size_t action_count, ...);
@@ -1308,7 +1308,7 @@ void *purple_request_action(void *handle, const char *title,
* @param default_action The default value.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
* @param action_count The number of actions.
* @param actions A list of actions and callbacks.
@@ -1317,7 +1317,7 @@ void *purple_request_action(void *handle, const char *title,
*/
void *purple_request_action_varg(void *handle, const char *title,
const char *primary, const char *secondary,
- unsigned int default_action,
+ int default_action,
PurpleAccount *account, const char *who, PurpleConversation *conv,
void *user_data, size_t action_count,
va_list actions);
@@ -1338,7 +1338,7 @@ void *purple_request_action_varg(void *handle, const char *title,
* @param cancel_cb The callback for the @c Cancel button.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy associated with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
*
* @return A UI-specific handle.
@@ -1411,7 +1411,7 @@ void purple_request_close_with_handle(void *handle);
* @param cancel_cb The callback for the @c Cancel button.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
*
* @return A UI-specific handle.
@@ -1435,7 +1435,7 @@ void *purple_request_file(void *handle, const char *title, const char *filename,
* @param cancel_cb The callback for the @c Cancel button.
* @param account The PurpleAccount associated with this request, or NULL if none is
* @param who The username of the buddy assocaited with this request, or NULL if none is
- * @param conv The PurpleConversation associated with this request, or NULL if none is
+ * @param conv The PurpleConversation associated with this request, or NULL if none is
* @param user_data The data to pass to the callback.
*
* @return A UI-specific handle.