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

Added PRGetLastErrorText().

This commit is contained in:
Adam Preble
2009-05-31 10:47:51 -04:00
parent 301f3aa26b
commit 71fc6c9b52
6 changed files with 81 additions and 16 deletions

View File

@@ -77,12 +77,14 @@ typedef enum PRLogLevel {
kPRLogWarning,
kPRLogError
} PRLogLevel;
typedef void (*PRLogCallback)(PRLogLevel level, const char *text); /**< Function pointer type for a custom logging callback. See: PRLogSetCallback(). */
PR_EXPORT void PRLogSetCallback(PRLogCallback callback); /**< Replaces the default logging handler with the given callback function. */
PR_EXPORT void PRLogSetLevel(PRLogLevel level);
PR_EXPORT const char *PRGetLastErrorText();
/**
* @defgroup device Device Creation & Deletion
* @{