ev3duder  0.3.0
EV3 Downloader/Uploader
funcs.h
Go to the documentation of this file.
1 
15 #ifndef EV3DUDER_FUNCS_H
16 #define EV3DUDER_FUNCS_H
17 
18 #include <stdio.h>
19 #include <stddef.h>
30 extern int up(FILE* loc, const char *rem);
32 
34 extern int dl(const char *rem, FILE* loc);
35 
37 extern int info(const char *arg);
38 
40 extern int run(const char *rem, unsigned timeout);
41 
43 extern int ls(const char *rem);
44 
45 
47 extern int rm(const char *rem);
48 
50 extern int mkdir(const char *rem);
51 
53 extern size_t mkrbf(char **buf, const char *cmd);
54 
56 extern int tunnel();
57 extern int listen();
58 
59 
60 #if 0 // not yet implemented
61 extern int cat(const char *rem, size_t count);
63 #endif
64 #endif
65 
int ls(const char *rem)
list contents of remote directory rem
Definition: ls.c:36
int info(const char *arg)
print connection information, beep and exit
Definition: info.c:36
int listen()
Definition: listen.c:7
int run(const char *rem, unsigned timeout)
run remote .rbf file rem via VM
Definition: run.c:30
int dl(const char *rem, FILE *loc)
download remote source rem to local file loc
Definition: dl.c:26
int up(FILE *loc, const char *rem)
upload local file loc to remote destination rem
Definition: up.c:29
unsigned timeout
Definition: main.c:126
int cat(const char *rem, size_t count)
Definition: cat.c:25
int rm(const char *rem)
remove remote file or directory rem
Definition: rm.c:27
int mkdir(const char *rem)
create directory rem on remote system
Definition: mkdir.c:29
int tunnel()
tunnel stdio to established ev3 connection
Definition: tunnel.c:35
size_t mkrbf(char **buf, const char *cmd)
fill *buf with a rbf file executing cmd
Definition: mkrbf.c:29