several additions
This commit is contained in:
15
giteaAPI.h
15
giteaAPI.h
@@ -8,12 +8,25 @@ typedef struct {
|
||||
char* instance;
|
||||
} SESSION;
|
||||
|
||||
struct RESPONSE{
|
||||
char* data;
|
||||
size_t size;
|
||||
long status;
|
||||
};
|
||||
|
||||
enum TEAUI_GITEA_JSONPARSER {
|
||||
TEAUI_GITEA_JSONPARSER_TOKEN,
|
||||
};
|
||||
|
||||
void teaui_gitea_printResponse();
|
||||
int teaui_gitea_parseResponse(char* dest, enum TEAUI_GITEA_JSONPARSER type);
|
||||
|
||||
SESSION teaui_gitea_session(const char *instance);
|
||||
void teaui_gitea_cleanup(SESSION s);
|
||||
|
||||
void teaui_gitea_auth_basic(SESSION s, const char *user, const char *pass);
|
||||
void teaui_gitea_auth_token(SESSION s, const char *token);
|
||||
|
||||
const char* teaui_gitea_auth_generateToken(SESSION s, const char *username);
|
||||
void teaui_gitea_auth_generateToken(SESSION s, const char *username, const char *name);
|
||||
|
||||
#endif /* ifndef GITEA_API_H_ */
|
||||
|
||||
Reference in New Issue
Block a user