1/* 2 * 3 * Copyright 2012 Samsung Electronics S.LSI Co. LTD 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * 9 * http://www.apache.org/licenses/LICENSE-2.0 10 * 11 * Unless required by applicable law or agreed to in writing, software 12 * distributed under the License is distributed on an "AS IS" BASIS, 13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 * See the License for the specific language governing permissions and 15 * limitations under the License. 16 */ 17 18/* 19 * @file srp_error.h 20 * @brief 21 * @author Yunji Kim (yunji.kim@samsung.com) 22 * @version 1.1.0 23 * @history 24 * 2012.02.28 : Create 25 */ 26 27#ifndef _SRP_ERROR_H_ 28#define _SRP_ERROR_H_ 29 30typedef enum { 31 SRP_RETURN_OK = 0, 32 33 SRP_ERROR_OPEN_FAIL = -1000, 34 SRP_ERROR_ALREADY_OPEN = -1001, 35 SRP_ERROR_NOT_READY = -1002, 36 37 SRP_ERROR_IBUF_OVERFLOW = -2000, 38 SRP_ERROR_IBUF_INFO = -2001, 39 40 SRP_ERROR_OBUF_READ = -3000, 41 SRP_ERROR_OBUF_INFO = -3001, 42 SRP_ERROR_OBUF_MMAP = -3002, 43 44 SRP_ERROR_INVALID_SETTING = -4000, 45 SRP_ERROR_GETINFO_FAIL = -4001 46} SRP_ERRORTYPE; 47 48#endif /* _SRP_ERROR_H_ */ 49