summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2024-02-04 18:39:19 +0900
committerRyo Nakamura <upa@haeena.net>2024-02-04 20:23:08 +0900
commitc95e6a4fffe935330b4018e49f95fff5ad2cc551 (patch)
tree0620e4e817fa2c381f42f7d2ec4234061c0f07c1 /include
parent304e71d5a0420c5293d233add7408a21c173ddfd (diff)
do not passing msg_fp via mscp opts
instead, mpr_* functions print messages to stdout or stderr directly.
Diffstat (limited to 'include')
-rw-r--r--include/config.h.in12
-rw-r--r--include/mscp.h2
-rw-r--r--include/mscp_version.h.in8
3 files changed, 12 insertions, 10 deletions
diff --git a/include/config.h.in b/include/config.h.in
new file mode 100644
index 0000000..e45dec8
--- /dev/null
+++ b/include/config.h.in
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-3.0-only */
+#ifndef _CONFIG_H_
+#define _CONFIG_H_
+
+#define MSCP_VERSION "@MSCP_VERSION@"
+#define MSCP_BUILD_VERSION "@MSCP_BUILD_VERSION@"
+
+
+/* Define to 1 if you have the strlcat function. */
+#cmakedefine HAVE_STRLCAT 1
+
+#endif /* _CONFIG_H_ */
diff --git a/include/mscp.h b/include/mscp.h
index b9724f8..8d68032 100644
--- a/include/mscp.h
+++ b/include/mscp.h
@@ -48,8 +48,6 @@ struct mscp_opts {
int interval; /** interval between SSH connection attempts */
int severity; /** messaging severity. set MSCP_SERVERITY_* */
- int msg_fd; /** fd to output message. default STDOUT (0),
- * and -1 disables output */
};
#define MSCP_SSH_MAX_LOGIN_NAME 64
diff --git a/include/mscp_version.h.in b/include/mscp_version.h.in
deleted file mode 100644
index f442533..0000000
--- a/include/mscp_version.h.in
+++ /dev/null
@@ -1,8 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-only */
-#ifndef _MSCP_VERSION_H_
-#define _MSCP_VERSION_H_
-
-#define MSCP_VERSION "@MSCP_VERSION@"
-#define MSCP_BUILD_VERSION "@MSCP_BUILD_VERSION@"
-
-#endif /* _MSCP_VERSION_H_ */