Files
onionHEN/source/util/include/http_github.h
T
Hexwell f81c7a88d4 test: expand host unit coverage for pure OrionHEN modules
Extract host-testable helpers (GitHub commit SHA, account-id base64,
registry entity ids, playtime store, cheat flatten names, toolbox path
helpers, IPC reply body) and grow the util host suite to ~120 cases.
Also phase-split bootstrapper main for clearer launch diagnostics.
2026-07-10 17:09:54 +08:00

25 lines
557 B
C

/* Copyright (C) 2025 OrionHEN / 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 orion_http_extract_commit_sha(const char *json_data, char *sha_buffer,
size_t buffer_size);
#ifdef __cplusplus
}
#endif