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

Go to the source code of this file.

Data Structures

struct  resource


typedef struct resource resource_t


void resources_init (void)
void resources_deinit (void)
resource_tresources_find (const char *name)
void resources_send (resource_t *resource, socket_struct *ns)

Detailed Description

Resource files related header file.

Alex Tokar

Definition in file resources.h.

Typedef Documentation

typedef struct resource resource_t

Structure containing information about a single resource.

Function Documentation

void resources_deinit ( void  )

Deinitialize the resource files database.

Definition at line 143 of file resources.c.

resource_t* resources_find ( const char *  name)

Find a resource identified by its name.

nameThe name identifier.
Resource if found, NULL otherwise.

Definition at line 162 of file resources.c.

void resources_init ( void  )

Initialize the resource files database.

Definition at line 126 of file resources.c.

void resources_send ( resource_t resource,
socket_struct ns 

Send information about the specified resource to a game client.

resourceResource to send information about.
nsClient to send to.

Definition at line 182 of file resources.c.