10 |
nishi |
1 |
/* $Id: rv_repo.h 15 2024-08-21 15:36:37Z nishi $ */
|
|
|
2 |
|
|
|
3 |
#ifndef __RV_REPO_H__
|
|
|
4 |
#define __RV_REPO_H__
|
|
|
5 |
|
11 |
nishi |
6 |
#include <stdbool.h>
|
|
|
7 |
|
|
|
8 |
char* rv_construct_repouser(const char* reponame, const char* username);
|
|
|
9 |
bool rv_repo_exists(const char* repouser);
|
|
|
10 |
void rv_repo_list(const char* username, void (*handler)(const char* name, const char* rev));
|
|
|
11 |
void rv_create_repo(const char* repouser);
|
|
|
12 |
char* rv_get_readme(const char* repouser);
|
|
|
13 |
bool rv_get_list(const char* repouser, const char* path, void (*handler)(const char* pathname), int* isdir);
|
|
|
14 |
char* rv_read_file(const char* repouser, char* path);
|
|
|
15 |
long long rv_get_filesize(const char* repouser, const char* path);
|
14 |
nishi |
16 |
void rv_remove_repo(const char* repouser);
|
15 |
nishi |
17 |
void rv_set_readme(const char* repouser, const char* readme);
|
11 |
nishi |
18 |
|
10 |
nishi |
19 |
#endif
|