Review possible errors and document them

Review all the possible errors and document them for each function.
This commit is contained in:
Bastien Nocera
2008-11-24 14:16:41 +00:00
committed by Daniel Drake
parent 1abf51afa4
commit 7b06c4b7f3
6 changed files with 100 additions and 57 deletions

View File

@ -207,18 +207,13 @@ fprint_error_get_type (void)
if (etype == 0) {
static const GEnumValue values[] =
{
ENUM_ENTRY (FPRINT_ERROR_INTERNAL, "Internal"),
ENUM_ENTRY (FPRINT_ERROR_ALREADY_IN_USE, "InUse"),
ENUM_ENTRY (FPRINT_ERROR_DISCOVER_PRINTS, "DiscoverPrints"),
ENUM_ENTRY (FPRINT_ERROR_PRINT_NOT_FOUND, "PrintNotFound"),
ENUM_ENTRY (FPRINT_ERROR_PRINT_LOAD, "PrintLoad"),
ENUM_ENTRY (FPRINT_ERROR_NO_SUCH_LOADED_PRINT, "NoSuchLoadedPrint"),
ENUM_ENTRY (FPRINT_ERROR_CLAIM_DEVICE, "ClaimDevice"),
ENUM_ENTRY (FPRINT_ERROR_VERIFY_START, "VerifyStart"),
ENUM_ENTRY (FPRINT_ERROR_VERIFY_STOP, "VerifyStop"),
ENUM_ENTRY (FPRINT_ERROR_ENROLL_START, "EnrollStart"),
ENUM_ENTRY (FPRINT_ERROR_ENROLL_STOP, "EnrollStop"),
ENUM_ENTRY (FPRINT_ERROR_FAILED, "Failed"),
ENUM_ENTRY (FPRINT_ERROR_ALREADY_IN_USE, "AlreadyInUse"),
ENUM_ENTRY (FPRINT_ERROR_INTERNAL, "Internal"),
ENUM_ENTRY (FPRINT_ERROR_PERMISSION_DENIED, "PermissionDenied"),
ENUM_ENTRY (FPRINT_ERROR_NO_ENROLLED_PRINTS, "NoEnrolledPrints"),
ENUM_ENTRY (FPRINT_ERROR_NO_ACTION_IN_PROGRESS, "NoActionInProgress"),
ENUM_ENTRY (FPRINT_ERROR_INVALID_FINGERNAME, "InvalidFingername"),
{ 0, 0, 0 }
};
etype = g_enum_register_static ("FprintError", values);