diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-26 13:09:14 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-06-26 13:27:42 -0400 |
commit | a292680b28f607a3b5401ea4ab5641b817e12c20 (patch) | |
tree | 9854a2dc81f050751e184c90694aa954cac53f91 | |
parent | ed32eb8b1f74936d7670437e60f905412a2b802c (diff) | |
download | stasis-a292680b28f607a3b5401ea4ab5641b817e12c20.tar.gz |
Include github.h and template_func_proto.h in core.h
-rw-r--r-- | include/core.h | 2 | ||||
-rw-r--r-- | include/github.h | 2 | ||||
-rw-r--r-- | src/CMakeLists.txt | 1 | ||||
-rw-r--r-- | src/github.c | 1 |
4 files changed, 5 insertions, 1 deletions
diff --git a/include/core.h b/include/core.h index ac9ae2f..1ea9650 100644 --- a/include/core.h +++ b/include/core.h @@ -38,6 +38,8 @@ #include "relocation.h" #include "wheel.h" #include "junitxml.h" +#include "github.h" +#include "template_func_proto.h" #define guard_runtime_free(X) do { if (X) { runtime_free(X); X = NULL; } } while (0) #define guard_strlist_free(X) do { if ((*X)) { strlist_free(X); (*X) = NULL; } } while (0) diff --git a/include/github.h b/include/github.h index eb24753..6c8de98 100644 --- a/include/github.h +++ b/include/github.h @@ -1,6 +1,8 @@ #ifndef STASIS_GITHUB_H #define STASIS_GITHUB_H +#include "core.h" + #define STASIS_GITHUB_API_VERSION "2022-11-28" int get_github_release_notes(const char *api_token, const char *repo, const char *tag, const char *target_commitish, char **output); diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4e76eb6..a7b06f7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -23,6 +23,7 @@ add_library(stasis_core STATIC docker.c junitxml.c github.c + template_func_proto.c ) add_executable(stasis diff --git a/src/github.c b/src/github.c index d75e84c..4491714 100644 --- a/src/github.c +++ b/src/github.c @@ -1,7 +1,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <curl/curl.h> #include "github.h" struct GHContent { |