comparison template/dw.c @ 986:87dc0f5f96d0

Fix return type of dw_listbox_selected() to be "int" instead of "unsigned int" to allow -1 return. Changed return values of a number of functions to be consistent across platforms and use the defines.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 05:14:06 +0000
parents cfc0777aceb5
children 297f2e790e57
comparison
equal deleted inserted replaced
985:cfc0777aceb5 986:87dc0f5f96d0
1206 * Parameters: 1206 * Parameters:
1207 * handle: Handle to the listbox to be queried. 1207 * handle: Handle to the listbox to be queried.
1208 * Returns: 1208 * Returns:
1209 * The selected item index or DW_ERROR_UNKNOWN (-1) on error. 1209 * The selected item index or DW_ERROR_UNKNOWN (-1) on error.
1210 */ 1210 */
1211 unsigned int API dw_listbox_selected(HWND handle) 1211 int API dw_listbox_selected(HWND handle)
1212 { 1212 {
1213 return DW_ERROR_UNKNOWN; 1213 return DW_ERROR_UNKNOWN;
1214 } 1214 }
1215 1215
1216 /* 1216 /*
3163 * event gets posted or until the timeout expires. 3163 * event gets posted or until the timeout expires.
3164 * Parameters: 3164 * Parameters:
3165 * eve: The handle to the event returned by dw_event_new(). 3165 * eve: The handle to the event returned by dw_event_new().
3166 * Returns: 3166 * Returns:
3167 * DW_ERROR_NONE (0) on success. 3167 * DW_ERROR_NONE (0) on success.
3168 * DW_ERROR_TIMEOUT (2) if the timeout has expired.
3169 * Other values on other error.
3168 */ 3170 */
3169 int dw_event_wait(HEV eve, unsigned long timeout) 3171 int dw_event_wait(HEV eve, unsigned long timeout)
3170 { 3172 {
3171 return DW_ERROR_GENERAL; 3173 return DW_ERROR_GENERAL
3172 } 3174 }
3173 3175
3174 /* 3176 /*
3175 * Closes a semaphore created by dw_event_new(). 3177 * Closes a semaphore created by dw_event_new().
3176 * Parameters: 3178 * Parameters: