mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-23 04:12:37 -05:00
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.
25 lines
557 B
C
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
|