aboutsummaryrefslogtreecommitdiff
path: root/multihome.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-09-11 20:22:24 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-09-11 20:22:24 -0400
commit1251aa55b97b3b4ca7c2c670bdbd683a76eb6daa (patch)
tree9c3f6d9638046dbbeacd284cf5a70b5d7f901f75 /multihome.h
parente697056101dcd1461eee2bde3e169e4d7ddaec20 (diff)
downloadmultihome-1251aa55b97b3b4ca7c2c670bdbd683a76eb6daa.tar.gz
Refactor headers and relocate tests
Diffstat (limited to 'multihome.h')
-rw-r--r--multihome.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/multihome.h b/multihome.h
index 55ab6ce..80ce082 100644
--- a/multihome.h
+++ b/multihome.h
@@ -1,7 +1,3 @@
-//
-// Created by jhunk on 8/26/20.
-//
-
#ifndef MULTIHOME_MULTIHOME_H
#define MULTIHOME_MULTIHOME_H
@@ -42,4 +38,17 @@
setvbuf(stdout, NULL, _IONBF, 0); \
setvbuf(stderr, NULL, _IONBF, 0);
+void free_array(void **arr, size_t nelem);
+ssize_t count_substrings(const char *s, char *sub);
+char **split(const char *sptr, char *delim, size_t *num_alloc);
+char *find_program(const char *_name);
+int shell(char *args[]);
+int mkdirs(char *path);
+int copy(char *source, char *dest, int mode);
+int touch(char *filename);
+char *get_timestamp(char **result);
+void write_init_script();
+void user_transfer(int copy_mode);
+char *strip_domainname(char *hostname);
+
#endif //MULTIHOME_MULTIHOME_H