doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions | Variables
nwlib.c File Reference
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <library.h>
#include <netware.h>
#include <screen.h>
#include <nks/thread.h>
#include <nks/synch.h>

Go to the source code of this file.

Classes

struct  libthreaddata_t
 
struct  libdata_t
 

Functions

int DisposeLibraryData (void *)
 
void DisposeThreadData (void *)
 
int GetOrSetUpData (int id, libdata_t **data, libthreaddata_t **threaddata)
 
int _NonAppStart (void *NLMHandle, void *errorScreen, const char *cmdLine, const char *loadDirPath, size_t uninitializedDataLength, void *NLMFileHandle, int(*readRoutineP)(int conn, void *fileHandle, size_t offset, size_t nbytes, size_t *bytesRead, void *buffer), size_t customDataOffset, size_t customDataSize, int messageCount, const char **messages)
 
void _NonAppStop (void)
 
int _NonAppCheckUnload (void)
 

Variables

int gLibId = -1
 
voidgLibHandle = (void *) NULL
 
rtag_t gAllocTag = (rtag_t) NULL
 
NXMutex_t * gLibLock = (NXMutex_t *) NULL
 

Function Documentation

int _NonAppCheckUnload ( void  )

Definition at line 149 of file nwlib.c.

int _NonAppStart ( void NLMHandle,
void errorScreen,
const char *  cmdLine,
const char *  loadDirPath,
size_t  uninitializedDataLength,
void NLMFileHandle,
int(*)(int conn, void *fileHandle, size_t offset, size_t nbytes, size_t *bytesRead, void *buffer readRoutineP,
size_t  customDataOffset,
size_t  customDataSize,
int  messageCount,
const char **  messages 
)

Definition at line 62 of file nwlib.c.

void _NonAppStop ( void  )

Definition at line 132 of file nwlib.c.

int DisposeLibraryData ( void data)

Definition at line 293 of file nwlib.c.

void DisposeThreadData ( void data)

Definition at line 311 of file nwlib.c.

int GetOrSetUpData ( int  id,
libdata_t **  data,
libthreaddata_t **  threaddata 
)

Definition at line 155 of file nwlib.c.

Variable Documentation

rtag_t gAllocTag = (rtag_t) NULL

Definition at line 52 of file nwlib.c.

void* gLibHandle = (void *) NULL

Definition at line 51 of file nwlib.c.

int gLibId = -1

Definition at line 50 of file nwlib.c.

NXMutex_t* gLibLock = (NXMutex_t *) NULL

Definition at line 53 of file nwlib.c.