435e251809
Updates ingests via Twitch's ingest API. The servers are ordered by closest to farthest from the user via the API. It's probably still good to keep the services.json Twitch ingests updated in case there are issues with the Twitch ingest API, but otherwise the ingests will update from Twitch itself every time the program is opened automatically.
12 lines
254 B
C
12 lines
254 B
C
#pragma once
|
|
|
|
struct twitch_ingest {
|
|
const char *name;
|
|
const char *url;
|
|
};
|
|
|
|
extern void twitch_ingests_lock(void);
|
|
extern void twitch_ingests_unlock(void);
|
|
extern size_t twitch_ingest_count(void);
|
|
extern struct twitch_ingest twitch_ingest(size_t idx);
|