1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Improved error reporting. PRGetEvents() now returns -1 if an error occurred.

This commit is contained in:
preble
2010-03-28 14:23:07 -04:00
parent d140153f97
commit ed7f0153f0
2 changed files with 19 additions and 6 deletions

View File

@@ -280,7 +280,9 @@ typedef struct PREvent {
uint32_t time; /**< Time (in milliseconds) that this event occurred. */
} PREvent;
/** Get all of the available events that have been received. */
/** Get all of the available events that have been received.
* \return Number of events returned; -1 if an error occurred.
*/
PR_EXPORT int PRGetEvents(PRHandle handle, PREvent *eventsOut, int maxEvents);