#ifndef DK4APPI_C_INCLUDED #define DK4APPI_C_INCLUDED 1 /** Errors found but not immediately reported. */ enum { /** Failed to find language, region and encoding. */ E_LOCALE = 1, /** Memory allocation failed. */ E_MEMORY , /** Failed to find name of executable file. */ E_EXEFILE , /** File or directory name of executable file path name too long for buffer. */ E_EXECNAME_TOO_LONG , /** No directory part in executable file path. */ E_NO_DIR_IN_EXENAME , /** Empty option specification. BUG! */ E_EMPTY_OPTION_SPEC , /** Long option specified multiple times. BUG! */ E_OPTION_LONG_SPEC_MULT , /** Short option specified multiple times. BUG! */ E_OPTION_SHORT_SPEC_MULT , /** Failed to find user name. */ E_USER_NAME_NOT_FOUND , /** Failed to find user home directory. */ E_USER_HOME_NOT_FOUND , /** Failed to find host name. */ E_HOST_NAME_NOT_FOUND , /** Failed to open a preferences file. */ E_PREF_FILE_OPEN , /** Number of command line arguments is NULL. */ E_ARGC , /** Option requires an argument. */ E_OPT_REQUIRES_ARG , /** Unexpected option found. */ E_UNEXPECTED_OPTION , /** Invalid argument to option. */ E_INVALID_OPTION_ARG , /** Option too long. */ E_OPTION_TOO_LONG , /** A required argument was not specified. This is a program bug. */ E_BUG_ARGUMENTS , /** Failed to construct log file name. */ E_LOG_FILE_NAME , }; #endif