From 4f0669f8f86acb09f10ffb5af273f86d8d6ddd34 Mon Sep 17 00:00:00 2001 From: Ryo Nakamura Date: Tue, 6 Feb 2024 21:54:04 +0900 Subject: refactor error message-related functions split message print fuctions (mpr_*), strerrno, and mscp_get/set_error into print.c/h and strerrno.c/h. ToDo: revise usages of priv_set_errv and pr_* functions. --- include/mscp.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include') diff --git a/include/mscp.h b/include/mscp.h index 1c3528c..3fafd7b 100644 --- a/include/mscp.h +++ b/include/mscp.h @@ -120,7 +120,6 @@ struct mscp *mscp_init(const char *remote_host, int direction, * @param m mscp instance. * * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_connect(struct mscp *m); @@ -136,7 +135,6 @@ int mscp_connect(struct mscp *m); * @param src_path source file path to be copied. * * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_add_src_path(struct mscp *m, const char *src_path); @@ -150,7 +148,6 @@ int mscp_add_src_path(struct mscp *m, const char *src_path); * @param dst_path destination path to which source files copied. * * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_set_dst_path(struct mscp *m, const char *dst_path); @@ -165,7 +162,6 @@ int mscp_set_dst_path(struct mscp *m, const char *dst_path); * @param m mscp instance. * * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_scan(struct mscp *m); @@ -176,7 +172,6 @@ int mscp_scan(struct mscp *m); * * @param m mscp instance. * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_scan_join(struct mscp *m); @@ -189,7 +184,6 @@ int mscp_scan_join(struct mscp *m); * @param m mscp instance. * * @return number of threads on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. * * @see mscp_join() */ @@ -211,7 +205,6 @@ void mscp_stop(struct mscp *m); * @param m mscp instance. * * @return 0 on success, < 0 if an error occured. - * mscp_get_error() can be used to retrieve error message. */ int mscp_join(struct mscp *m); @@ -261,15 +254,4 @@ enum { }; - -/** - * @brief Get the recent error message from libmscp. Note that this - * function is not thread-safe. - * - * @return pointer to the message. - */ -const char *mscp_get_error(void); - - - #endif /* _MSCP_H_ */ -- cgit v1.2.3