Atrinik Client  4.0
Data Structures | Typedefs | Functions
resources.h File Reference
#include <openssl/sha.h>
#include <toolkit/curl.h>

Go to the source code of this file.

Data Structures

struct  resource
 

Typedefs

typedef struct resource resource_t
 

Functions

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

Detailed Description

Resource management header file.

Author
Alex Tokar

Definition in file resources.h.

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.