diff options
author | 2019-10-07 14:37:42 +0000 | |
---|---|---|
committer | 2019-10-07 14:37:42 +0000 | |
commit | 7896701a177d66f376172ab43df4b0c1d5d867a3 (patch) | |
tree | a89986dcceb1d5b6faa7ae529b1d4a1e9f4d6d85 /lib/src/error.h | |
parent | 108c55669102931acc9bd99ca9918379722732b8 (diff) | |
parent | 6b84ec54083da9911f5ad4816d0eb4f4745afad4 (diff) |
Merge "[HICN-298] Release new hICN app for Android"
Diffstat (limited to 'lib/src/error.h')
-rw-r--r-- | lib/src/error.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/lib/src/error.h b/lib/src/error.h deleted file mode 100644 index 3e027c4e5..000000000 --- a/lib/src/error.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (c) 2017-2019 Cisco and/or its affiliates. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * @file error.h - * @brief Error management functions. - */ -#ifndef HICN_ERROR_H -#define HICN_ERROR_H - -/****************************************************************************** - * Error definitions - ******************************************************************************/ - -#define foreach_libhicn_error \ -_(NONE, 0, "OK") \ -_(UNSPECIFIED, 128, "Unspecified Error") \ -_(NOT_IMPLEMENTED, 180, "Function not yet implemented") \ -_(NOT_HICN, 202, "Non hICN packet") \ -_(UNKNOWN_ADDRESS, 210, "Unknown address") \ -_(INVALID_PARAMETER, 220, "Invalid parameter") \ -_(INVALID_IP_ADDRESS, 221, "Invalid IP address") \ -_(CORRUPTED_PACKET, 222, "Corrupted packet ") \ -_(UNEXPECTED, 298, "Unexpected error") - -typedef enum -{ -#define _(a,b,c) HICN_LIB_ERROR_##a = (-b), - foreach_libhicn_error -#undef _ - HICN_LIB_N_ERROR, -} hicn_lib_error_t; - -extern const char *HICN_LIB_ERROR_STRING[]; - -#define hicn_strerror(errno) (char *)(HICN_LIB_ERROR_STRING[-errno]) - -#endif /* HICN_ERROR_H */ - -/* - * fd.io coding-style-patch-verification: ON - * - * Local Variables: - * eval: (c-set-style "gnu") - * End: - */ |