mirror of
https://github.com/aydencharles/onionHEN.git
synced 2026-10-22 11:53:07 -05:00
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.
25 lines
557 B
C
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
|