Atrinik Client  4.0
Functions | Variables
resources.c File Reference
#include <global.h>
#include <resources.h>
#include <toolkit/string.h>
#include <toolkit/path.h>
#include <toolkit/packet.h>

Go to the source code of this file.

Functions

void resources_init (void)
 
static void resources_free (void)
 
void resources_deinit (void)
 
void resources_reload (void)
 
resource_tresources_find (const char *name)
 
void socket_command_resource (uint8_t *data, size_t len, size_t pos)
 
bool resources_is_ready (resource_t *resource)
 

Variables

static resource_tresources = NULL
 

Detailed Description

Resource files management.

Author
Alex Tokar

Definition in file resources.c.

Function Documentation

void resources_deinit ( void  )

Deinitialize the resource files management sub-system.

Definition at line 74 of file resources.c.

void resources_init ( void  )

Initialize the resource files management sub-system.

Definition at line 47 of file resources.c.

bool resources_is_ready ( resource_t resource)

Checks if the specified resource is ready for use.

Parameters
resourceResource to check.
Returns
True if the resource is ready, false otherwise.

Definition at line 161 of file resources.c.

void resources_reload ( void  )

Reload the resource files management sub-system.

This should be done when switching servers.

Definition at line 85 of file resources.c.

void socket_command_resource ( uint8_t *  data,
size_t  len,
size_t  pos 
)

Definition at line 100 of file resources.c.

Variable Documentation

resource_t* resources = NULL
static

Hash table of the resource files.

Definition at line 41 of file resources.c.