+++ /dev/null
-/*
- *****************************************************************************
- *
- * 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 */
-