1 /** 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 /** \addtogroup RTP_Stack 18 * @{ 19 */ 20 21 #ifndef __RTP_ERROR_H__ 22 #define __RTP_ERROR_H__ 23 24 #define RTP_ERRORCODES_START 100 25 #define RTP_ERRORCODES_GAP 100 26 27 #define RTP_ERRORCODES_UTILS (RTP_ERRORCODES_START + (0 * RTP_ERRORCODES_GAP)) 28 #define RTP_ERRORCODES_TXNTRANSP (RTP_ERRORCODES_START + (1 * RTP_ERRORCODES_GAP)) 29 #define RTP_ERRORCODES_MSG (RTP_ERRORCODES_START + (2 * RTP_ERRORCODES_GAP)) 30 31 typedef enum _RtpEn_ErrorTypes 32 { 33 RTP_UTIL_ERR_START = RTP_ERRORCODES_UTILS, 34 ERR_LIST_INV_INPUT, 35 ERR_MALLOC_FAILED, 36 ERR_LIST_NO_COMPARE_FXN, 37 ERR_LIST_ELEMENT_NOT_EXIST, 38 ERR_INVALID_PARAM, 39 ERR_INVALID_INPUT, 40 ERR_TIMER_NOT_CREATED, 41 ERR_TIMER_RESET_SUCCESS, 42 ERR_TIMER_RESET_FAIL, 43 ERR_HASH_ELEMENT_EXCEEDED, 44 ERR_HASH_KEY_ALREADY_EXISTS, 45 ERR_HASH_ELEMENT_NOT_FOUND, 46 ERR_MUTEX_INIT_FAILED, 47 TXN_INVALID = RTP_INVALID 48 } RtpEn_ErrorTypes; 49 50 #endif /* __RTP_ERROR_H__*/ 51 52 /** @}*/ 53