23 lines
480 B
C
23 lines
480 B
C
//
|
|
// Created by rov on 12/27/25.
|
|
//
|
|
|
|
#ifndef TIBIA_NETWORK_H
|
|
#define TIBIA_NETWORK_H
|
|
|
|
#include <stdbool.h>
|
|
#include <SDL3_net/SDL_net.h>
|
|
#include "config.h"
|
|
|
|
typedef struct Gui Gui_t;
|
|
|
|
typedef struct Network {
|
|
NET_StreamSocket* socket;
|
|
} Network_t;
|
|
|
|
bool Network_Init(Network_t* network);
|
|
void Network_Shutdown(const Network_t* network);
|
|
|
|
void Network_ConnectAndReportStatus(Network_t* network, const ConfigParams_t* configParams, const Gui_t* gui);
|
|
|
|
#endif //TIBIA_NETWORK_H
|