diff options
author | 2025-04-09 13:24:53 -0700 | |
---|---|---|
committer | 2025-04-11 00:15:18 -0700 | |
commit | f277f41d83d450a1f28d350bb7d6da075d1d2741 (patch) | |
tree | e197a7de7e26b47cec57a46acdde4b6c74889ad5 /src/github.h | |
download | github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.tar.gz github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.tar.zst github-mirror-f277f41d83d450a1f28d350bb7d6da075d1d2741.zip |
Initial Commit
Add cmake github workflow
Install dependencies in gh action
Fix missing directory
Fix compiler errors
Fix group name to gid conversion
Force cjson to statically link
Add header guards to query headers
Add install and cpack to CMakeLists.txt
Add config search and CLI arg parsing
Improve docs for git.c
Fix program continuing on -h flag
Diffstat (limited to 'src/github.h')
-rw-r--r-- | src/github.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/github.h b/src/github.h new file mode 100644 index 0000000..4979fde --- /dev/null +++ b/src/github.h @@ -0,0 +1,30 @@ +// +// Created by Anshul Gupta on 4/4/25. +// + +#ifndef GITHUB_H +#define GITHUB_H + +#include "github_types.h" + +typedef void github_client; + +struct github_ctx { + const char *endpoint; + const char *token; + const char *user_agent; +}; + +github_client *github_client_new(struct github_ctx ctx); + +github_client *github_client_dup(github_client *client); + +void github_client_free(github_client *client); + +char *github_client_identity(const github_client *client); + +int github_client_list_user_repos(const github_client *client, + const char *username, const char *after, + struct list_repos_res *res); + +#endif // GITHUB_H |