From 6b84ec54083da9911f5ad4816d0eb4f4745afad4 Mon Sep 17 00:00:00 2001 From: Jordan Augé Date: Mon, 7 Oct 2019 09:52:33 +0200 Subject: [HICN-298] Release new hICN app for Android MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I43adc62fadf00690b687078d739788dffdc5e566 Signed-off-by: Jordan Augé --- lib/src/error.h | 58 --------------------------------------------------------- 1 file changed, 58 deletions(-) delete mode 100644 lib/src/error.h (limited to 'lib/src/error.h') 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: - */ -- cgit 1.2.3-korg