return buffer;
}
-#define pakfire_repo_path(repo, path, format, ...) \
- __pakfire_repo_path(repo, path, sizeof(path), format, __VA_ARGS__)
-
-static int __pakfire_repo_path(struct pakfire_repo* repo,
- char* path, const size_t length, const char* format, ...)
- __attribute__((format(printf, 4, 5)));
-
-static int __pakfire_repo_path(struct pakfire_repo* repo,
+int __pakfire_repo_path(struct pakfire_repo* repo,
char* path, const size_t length, const char* format, ...) {
char buffer[PATH_MAX];
va_list args;
struct pakfire_mirrorlist* pakfire_repo_get_mirrors(struct pakfire_repo* repo);
+#define pakfire_repo_path(repo, path, format, ...) \
+ __pakfire_repo_path(repo, path, sizeof(path), format, __VA_ARGS__)
+int __pakfire_repo_path(struct pakfire_repo* repo,
+ char* path, const size_t length, const char* format, ...)
+ __attribute__((format(printf, 4, 5)));
+
int pakfire_repo_write_config(struct pakfire_repo* repo, FILE* f);
int pakfire_repo_is_installed_repo(struct pakfire_repo* repo);