Atrinik Client  4.0
Data Fields
server_files_struct Struct Reference

#include <server_files.h>

Data Fields

char * name
uint8_t loaded
int8_t update
size_t size
unsigned long crc32
curl_request_t * request
void(* init_func )(void)
void(* reload_func )(void)
void(* parse_func )(void)
UT_hash_handle hh

Detailed Description

One server file.

Definition at line 46 of file server_files.h.

Field Documentation

unsigned long server_files_struct::crc32

Calculated checksum.

Definition at line 67 of file server_files.h.

UT_hash_handle server_files_struct::hh

Hash handle.

Definition at line 82 of file server_files.h.

void(* server_files_struct::init_func)(void)

Init-time function.

Definition at line 73 of file server_files.h.

uint8_t server_files_struct::loaded

If 0, will be (re-)loaded.

Definition at line 51 of file server_files.h.

char* server_files_struct::name

Name of the server file.

Definition at line 48 of file server_files.h.

void(* server_files_struct::parse_func)(void)

Loading/parsing function.

Definition at line 79 of file server_files.h.

void(* server_files_struct::reload_func)(void)

Function to call when re-loading.

Definition at line 76 of file server_files.h.

curl_request_t* server_files_struct::request

cURL request.

Definition at line 70 of file server_files.h.

size_t server_files_struct::size

Size of the file.

Definition at line 64 of file server_files.h.

int8_t server_files_struct::update

Update status of this file:

  • 0: Not being updated, or just finished updating.
  • 1: Start updating the file the next time server_files_updating() is called.
  • -1: The file is being updated.

Definition at line 61 of file server_files.h.

The documentation for this struct was generated from the following file: