summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-02-06 21:54:04 +0900
committerRyo Nakamura <upa@haeena.net>2024-02-06 21:54:04 +0900
commit4f0669f8f86acb09f10ffb5af273f86d8d6ddd34 (patch)
tree65d5d0adfd90e31b77474993addeb065edfeb75c /include
parent76892a69f95f7dcf47050800385bc610f8ccf5f3 (diff)
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.
Diffstat (limited to 'include')
-rw-r--r--include/mscp.h18
1 files changed, 0 insertions, 18 deletions
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_ */