summaryrefslogtreecommitdiff
path: root/src/rcopy.h
diff options
context:
space:
mode:
authorDennis Camera <skonfig@dtnr.ch>2022-08-22 00:27:47 +0200
committerDennis Camera <skonfig@dtnr.ch>2022-08-22 00:27:47 +0200
commit2f425cb9e9d28c8e7f017a4fbe1203c7431e745b (patch)
tree9ac97abaebdbe3363ee71c6a9f3210799d4494ab /src/rcopy.h
parent580b957769a5ee4ab7522e474f3996c03426a286 (diff)
downloadskonfig-c-2f425cb9e9d28c8e7f017a4fbe1203c7431e745b.tar.gz
skonfig-c-2f425cb9e9d28c8e7f017a4fbe1203c7431e745b.zip
Implement command execution
Diffstat (limited to 'src/rcopy.h')
-rw-r--r--src/rcopy.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rcopy.h b/src/rcopy.h
new file mode 100644
index 0000000..d816f4a
--- /dev/null
+++ b/src/rcopy.h
@@ -0,0 +1,17 @@
+#ifndef _SK_RCOPY_H
+#define _SK_RCOPY_H
+
+/**
+ * sk_rcopy_file:
+ * copies a local file to a remote machine.
+ *
+ * @param src: the pathname to the local file.
+ * @param target_host: the name of the remote machine.
+ * @param dst: the pathname where to store the file on @target_host.
+ * @return 0 on success, other value otherwise.
+ */
+int sk_rcopy_file(
+ const char *restrict src, const char *restrict target_host,
+ const char *restrict dst);
+
+#endif