mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
41 lines
863 B
C
41 lines
863 B
C
// Jackson Coxson
|
|
|
|
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
|
|
/**
|
|
* Starts your emotional damage
|
|
* # Arguments
|
|
* * `bind_addr` - The UDP socket to listen to
|
|
* # Returns
|
|
* A handle to stop further emotional damage.
|
|
* Null on failure
|
|
* # Safety
|
|
* Don't be stupid
|
|
*/
|
|
int start_emotional_damage(const char *bind_addr);
|
|
|
|
/**
|
|
* Stops further emotional damage
|
|
* # Arguments
|
|
* * `handle` - The coping mechanism generated by start_emotional_damage
|
|
* # Returns
|
|
* The knowledge of knowing that you couldn't handle failure
|
|
* # Safety
|
|
* Don't be stupid
|
|
*/
|
|
void stop_emotional_damage(void);
|
|
|
|
/**
|
|
* Blocks until Wireguard is ready
|
|
* # Arguments
|
|
* * `timeout` - The timeout in miliseconds to wait for Wireguard
|
|
* # Returns
|
|
* 0 on success, -1 on failure
|
|
*/
|
|
int test_emotional_damage(int timeout);
|