2022-11-02 17:58:59 -07:00
|
|
|
// 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
|
|
|
|
|
*/
|
2022-12-30 15:47:27 -05:00
|
|
|
int start_emotional_damage(const char *bind_addr);
|
2022-11-02 17:58:59 -07:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 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
|
|
|
|
|
*/
|
2022-12-30 15:47:27 -05:00
|
|
|
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);
|