From 9bd603b639d7dd08fbe0af7e8669358bd066b7cd Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 11 Feb 2020 11:43:25 -0500 Subject: Refactor project structure: * Move prototypes and definitions to respective header files * Renamed strings.h to str.h to avoid collision with standard library header --- include/mirrors.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 include/mirrors.h (limited to 'include/mirrors.h') diff --git a/include/mirrors.h b/include/mirrors.h new file mode 100644 index 0000000..1be39f6 --- /dev/null +++ b/include/mirrors.h @@ -0,0 +1,12 @@ +#ifndef SPM_MIRRORS_H +#define SPM_MIRRORS_H + +#define SPM_MIRROR_MAX 0xff +#define SPM_MIRROR_FILENAME "mirrorlist" + +char **file_readlines(const char *filename); +char **mirror_list(const char *filename); +void mirror_list_free(char **m); +void mirror_clone(Manifest *info, char *dest); + +#endif //SPM_MIRRORS_H -- cgit