From 6bf3f5a870a28c7989a24ab6ae3040c650f84897 Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Thu, 21 Jul 2022 06:02:36 +0900 Subject: Rename library and header filename to librefop Previously this library name is libredundancyfileop, but it's too long for use. This patch rename library for libredundancyfileop to librefop. Bug-AGL: SPEC-4500 Signed-off-by: Naoto Yamaguchi Change-Id: I450c31cfe36f246489f9198e4cf2cfd6e85cb0ab --- include/libredundancyfileop.h | 57 ------------------------------------------- include/librefop.h | 57 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 57 deletions(-) delete mode 100644 include/libredundancyfileop.h create mode 100644 include/librefop.h (limited to 'include') diff --git a/include/libredundancyfileop.h b/include/libredundancyfileop.h deleted file mode 100644 index 22d48d0..0000000 --- a/include/libredundancyfileop.h +++ /dev/null @@ -1,57 +0,0 @@ -/** - * SPDX-License-Identifier: Apache-2.0 - * - * @file libredundancyfileop.h - * @brief Interface header for the redundancy file operation library - */ -#ifndef LIBREDUNDANCY_FILEOP_H -#define LIBREDUNDANCY_FILEOP_H -//----------------------------------------------------------------------------- -#include -#include - -//----------------------------------------------------------------------------- -#ifdef __cplusplus -extern "C" { -#endif -//----------------------------------------------------------------------------- -/** - * Error code and type definition - * @enum refop_error_t - */ -typedef enum refop_error { - //! This operation was succeeded. - REFOP_SUCCESS = 0, - - //! This operation was succeeded within recovery. - REFOP_RECOVER = 1, - - //! The target file/directroy was nothing. - REFOP_NOENT = -1, - - //! This operation was failed. Because all recovery method was failed. - REFOP_BROAKEN = -2, - - //! Argument error. - REFOP_ARGERROR = -3, - - //! Internal operation was failed such as no memory, no disk space and etc. - REFOP_SYSERROR = -100, - -} refop_error_t; -//----------------------------------------------------------------------------- -typedef struct refop_halndle *refop_handle_t; - -//----------------------------------------------------------------------------- -refop_error_t refop_create_redundancy_handle(refop_handle_t *handle, const char *directry, const char *filename); -refop_error_t refop_release_redundancy_handle(refop_handle_t handle); -refop_error_t refop_set_redundancy_data(refop_handle_t handle, uint8_t *data, int64_t datasize); -refop_error_t refop_get_redundancy_data(refop_handle_t handle, uint8_t *data, int64_t datasize, int64_t *getsize); -refop_error_t refop_remove_redundancy_data(refop_handle_t handle); - -//----------------------------------------------------------------------------- -#ifdef __cplusplus -} -#endif -//----------------------------------------------------------------------------- -#endif //#ifndef LIBREDUNDANCY_FILEOP_H diff --git a/include/librefop.h b/include/librefop.h new file mode 100644 index 0000000..896494a --- /dev/null +++ b/include/librefop.h @@ -0,0 +1,57 @@ +/** + * SPDX-License-Identifier: Apache-2.0 + * + * @file librefop.h + * @brief Interface header for the redundancy file operation library + */ +#ifndef LIBREDUNDANCY_FILEOP_H +#define LIBREDUNDANCY_FILEOP_H +//----------------------------------------------------------------------------- +#include +#include + +//----------------------------------------------------------------------------- +#ifdef __cplusplus +extern "C" { +#endif +//----------------------------------------------------------------------------- +/** + * Error code and type definition + * @enum refop_error_t + */ +typedef enum refop_error { + //! This operation was succeeded. + REFOP_SUCCESS = 0, + + //! This operation was succeeded within recovery. + REFOP_RECOVER = 1, + + //! The target file/directroy was nothing. + REFOP_NOENT = -1, + + //! This operation was failed. Because all recovery method was failed. + REFOP_BROAKEN = -2, + + //! Argument error. + REFOP_ARGERROR = -3, + + //! Internal operation was failed such as no memory, no disk space and etc. + REFOP_SYSERROR = -100, + +} refop_error_t; +//----------------------------------------------------------------------------- +typedef struct refop_halndle *refop_handle_t; + +//----------------------------------------------------------------------------- +refop_error_t refop_create_redundancy_handle(refop_handle_t *handle, const char *directry, const char *filename); +refop_error_t refop_release_redundancy_handle(refop_handle_t handle); +refop_error_t refop_set_redundancy_data(refop_handle_t handle, uint8_t *data, int64_t datasize); +refop_error_t refop_get_redundancy_data(refop_handle_t handle, uint8_t *data, int64_t datasize, int64_t *getsize); +refop_error_t refop_remove_redundancy_data(refop_handle_t handle); + +//----------------------------------------------------------------------------- +#ifdef __cplusplus +} +#endif +//----------------------------------------------------------------------------- +#endif //#ifndef LIBREDUNDANCY_FILEOP_H -- cgit 1.2.3-korg