v2.9.0: MBMNET Shop (eigene App, auf Wunsch installierbar)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d264cd93cd
commit
ca77952a9d
@@ -0,0 +1,14 @@
|
||||
#pragma once
|
||||
#include <3ds/types.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
// Empfänger für net_stream: bekommt die Daten stückweise. total = Gesamtgröße (0, wenn unbekannt).
|
||||
// false = abbrechen.
|
||||
typedef bool (*NetSink)(void *ctx, const u8 *data, u32 len, u32 total);
|
||||
|
||||
// Lädt eine URL komplett in den Speicher (höchstens max Bytes). Gibt den HTTP-Status zurück,
|
||||
// 0 bei Netzwerkfehler (Code in *rc). *out mit free() freigeben.
|
||||
u32 net_get(const char *url, u8 **out, u32 *size, u32 max, Result *rc);
|
||||
|
||||
// Lädt eine URL und reicht die Daten an sink weiter. Gibt den HTTP-Status zurück (0 bei Fehler).
|
||||
u32 net_stream(const char *url, NetSink sink, void *ctx, Result *rc);
|
||||
Reference in New Issue
Block a user