Files
onionHEN/source/util/include/http_github.h
T
Hexwell aad2cdaabc refactor: rebrand OrionHEN to OnionHEN
Rename product, namespaces, libraries, paths, and assets from Orion/orion
to Onion/onion across the tree. TCP stack-shutdown magic is now ONIO
(0x4F4E494F) to match the corrected branding.
2026-07-15 18:23:16 +08:00

25 lines
557 B
C

/* Copyright (C) 2025 OnionHEN / LightningMods
*
* Pure GitHub API helpers (no network).
*/
#pragma once
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
/**
* Extract commit "sha" from a GitHub commits API JSON body.
* Accepts either a single commit object or an array (uses first element).
* Returns true and NUL-terminates @p sha_buffer on success.
*/
bool onion_http_extract_commit_sha(const char *json_data, char *sha_buffer,
size_t buffer_size);
#ifdef __cplusplus
}
#endif