summaryrefslogtreecommitdiff
path: root/src/rcopy.h
blob: d816f4a88b0468acae5bdd9af5a32af8311131b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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