X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/7998170f46f28722a39174340594696259786f99..45f84c01ffb2bc5cb4379ddda8d14c401c9f8351:/stglibs/common.lib/stg_error.h?ds=inline diff --git a/stglibs/common.lib/stg_error.h b/stglibs/common.lib/stg_error.h deleted file mode 100644 index 39ae1457..00000000 --- a/stglibs/common.lib/stg_error.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - ***************************************************************************** - * - * File: stg_error.h - * - * Description: ëÏÄÙ ÏÛÉÂÏË - * - * $Id: stg_error.h,v 1.1.1.1 2005/09/29 11:33:18 boris Exp $ - * - ***************************************************************************** - */ - -#ifndef _STG_ERROR_H_ -#define _STG_ERROR_H_ - - -/* îÁÞÁÌÏ ÏÂÌÁÓÔÉ ÏÛÉÂÏË ÍÏÄÕÌÑ astat.cgi */ -#define ERROR_ASTAT_START (100000) -/* îÁÞÁÌÏ ÏÂÌÁÓÔÉ ÏÛÉÂÏË ÂÉÂÌÉÔÅËÉ qparam.lib */ -#define ERROR_QPARAM_START (102000) -/* îÁÞÁÌÏ ÏÂÌÁÓÔÉ ÏÛÉÂÏË ÂÉÂÌÉÔÅËÉ diagram.lib */ -#define ERROR_DIAGRAM_START (103000) - - -typedef enum -{ - SUCCESS = 0, - - ERROR_CONFIG_READ = ERROR_ASTAT_START, - ERROR_PORT_NUM, - ERROR_CLEAR_SID_DIR, - ERROR_UNKNOWN_HTTP_METHOD, - ERROR_NULL_HTTP_METHOD, - ERROR_UNKNOWN_QUERY, - ERROR_LOGIN, // ÐÏËÁ ÞÔÏ ÏÄÎÁ ÏÛÉÂËÁ ÎÁ ÍÎÏÇÏ ÓÉÔÕÁÃÉÊ: - // * ÎÅ ×ÅÒÎÏÅ ÉÍÑ É ÐÁÒÏÌØ - // * ÎÅÔ Ó×ÑÚÉ Ó ÓÅÒ×ÅÒÏÍ - // * .... - // ÜÔÏ Ó×ÑÚÁÎÏ Ó ËÏÄÁÍÉ ÏÛÉÂÏË ÍÏÄÕÌÑ srvconf.lib - // × ÄÁÌØÎÅÊÛÅÍ ÎÁÄÏ ÐÅÒÅÄÁÌÁÔØ ×ÓÅ ÎÁ ÏÄÉÎ - // enum ÏÛÉÂÏË - ERROR_PREPARE_USER_SELECTION_PAGE_0, - ERROR_ADD_IFACE, - ERROR_ADD_TARIFF, - ERROR_ADD_GROUP, - ERROR_ADD_USER, - ERROR_CREATE_SID, - ERROR_SET_SID, - ERROR_UPDATE_SID, - ERROR_READ_SID_DATA, - ERROR_WRITE_SID_DATA, - ERROR_REMOVE_EXPIRED_SID, - - ERROR_MEMORY_ALLOCATE = ERROR_QPARAM_START, - ERROR_MEMORY_DESPOSE, - ERROR_NULL_QUERY, // ÚÁÐÒÏÓ ÎÅ ÐÏÌÕÞÅÎ - ERROR_QUERY, // ÏÛÉÂËÁ × ÚÁÐÒÏÓÅ - ÎÅÓÏÏÔ×ÅÔÓÔ×ÉÅ ÓÔÁÎÄÁÒÔÕ - - ERROR_ARC_DATA_FULL = ERROR_DIAGRAM_START, - ERROR_ARC_PERCENT, - TODO -} RESULT_DATA; - - -char * GetErrorString(RESULT_DATA res); - -#endif /* _STG_ERROR_H_ */ - -/* EOF */ -