/* * Photo Image Print System * Copyright (C) 2000-2004 EPSON KOWA Corporation. * Copyright (C) SEIKO EPSON CORPORATION 2000-2004. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * As a special exception, EPSON KOWA Corporation gives permission to * link the code of this program with libraries which are covered by * the EPSON KOWA PUBLIC LICENCE and distribute their linked * combinations. You must obey the GNU General Public License in all * respects for all of the code used other than the libraries which * are covered by EPSON KOWA PUBLIC LICENCE. */ #ifdef HAVE_CONFIG_H # include #endif #ifndef __UI_ERROR_H__ #define __UI_ERROR_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define NO_ERROR 0 // 正常 #define NO_OPTION_ERROR 1 // オプションが存在しない #define OPTION_LESS_ERROR 2 // オプションの引数が少ない #define DUB_FILENAME_ERROR 3 // 入力ファイルの指定が、二つ以上ある #define OPTION_VALUES_ERROR 4 // オプションの値が,誤り #define CONNECTION_ERROR 5 // オプションの組合せパターンの誤り #define RESOURCE_ERROR 10 #define RESOURCE_FORM_ERROR 11 // 書式間違い #define NO_RESOURCE_ERROR 12 // リソースが存在しない #define RESOURCE_LESS_ERROR 13 // リソースの引数が少ない #define RESOURCE_VALUES_ERROR 14 // リソースの値が,誤り #define GRAPHICS_LOAD_ERROR 20 // グラフィクスのロードに失敗 #define NO_FILE_ERROR 21 // ファイルが存在しない #define FAILED_FILE_ERROR 22 // ファイルのオープンに失敗 #define GRAPHICS_FORMAT_ERROR 23 // 処理できないフォーマットである #define NOT_COMMUNICATE_LPR_ERROR 24 // lprとの通信に失敗 #define NO_SUCH_LIBRARY 30 // shared libraryが無い #define LIBRARY_PARAM_ERROR 31 // libraryの使用方法間違い #define MEMORY_ERROR 40 // メモリーの確保に失敗 #define UNEXPECTED_ERROR 41 // 予期せぬエラー(致命的) #define ABNORMAL_END 42 // 異常終了 #define INPUT_ESCP_WARNING 50 // ESC/Pコードが入力された int pipsError(char*, int); #ifdef __cplusplus } #endif /* __cplusplus */ #endif //__UI_ERROR_H__