FTEQW
Documentation of the FTE engine source tree.
sys_plugfte.c File Reference

Functions

dllhandle_t * Sys_LoadLibrary (const char *name, dllfunction_t *funcs)
 
void Sys_CloseLibrary (dllhandle_t *lib)
 
void BZ_Free (void *ptr)
 
voidBZF_Malloc (int size)
 
voidBZ_Malloc (int size)
 
void QDECL Q_strncpyz (char *d, const char *s, int n)
 
char * COM_SkipPath (const char *pathname)
 
void VARGS Q_vsnprintfz (char *dest, size_t size, const char *fmt, va_list argptr)
 
void VARGS Q_snprintfz (char *dest, size_t size, const char *fmt,...)
 
char * COM_TrimString (char *str, char *buffer, int buffersize)
 
void VARGS Con_Printf (const char *fmt,...)
 
void VARGS Con_DPrintf (const char *fmt,...)
 
int VARGS linuxlike_snprintf (char *buffer, int size, const char *format,...)
 
int VARGS linuxlike_vsnprintf (char *buffer, int size, const char *format, va_list argptr)
 
int VARGS linuxlike_snprintf_vc8 (char *buffer, int size, const char *format,...)
 
size_t NET_StringToSockaddr2 (const char *s, int defaultport, struct sockaddr_qstorage *sadr, int *addrfamily, int *addrsize, size_t addrcount)
 
char * COM_ParseType (const char *data, char *out, int outlen, com_tokentype_t *toktype)
 
void VFSPIPE_Close (vfsfile_t *f)
 
unsigned long VFSPIPE_GetLen (vfsfile_t *f)
 
unsigned long VFSPIPE_Tell (vfsfile_t *f)
 
qboolean VFSPIPE_Seek (vfsfile_t *f, unsigned long offset)
 
int VFSPIPE_ReadBytes (vfsfile_t *f, void *buffer, int len)
 
int VFSPIPE_WriteBytes (vfsfile_t *f, const void *buffer, int len)
 
vfsfile_tVFSPIPE_Open (void)
 
qboolean MyRegGetStringValue (void *base, const char *keyname, const char *valuename, void *data, size_t datalen)
 
qboolean MyRegSetValue (void *base, const char *keyname, const char *valuename, int type, const void *data, int datalen)
 
void MyRegDeleteKeyValue (void *base, const char *keyname, const char *valuename)
 
qboolean Update_GetHomeDirectory (char *homedir, int homedirsize)
 
void Sys_mkdir (const char *path)
 
void Update_Version_Updated (struct dl_download *dl)
 
qboolean Plug_GetDownloadedName (char *updatedpath, int updatedpathlen)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
 
char * cleanarg (char *arg)
 
qboolean Plug_GetBinaryName (char *exe, int exelen, char *basedir, int basedirlen)
 
int Plug_GenCommandline (struct context *ctx, char **argv, int maxargs)
 
qboolean Plug_GenCommandlineString (struct context *ctx, char *cmdline, int cmdlinelen)
 
void Plug_ExecuteCommand (struct context *ctx, char *message,...)
 
qboolean Plug_CreatePluginProcess (struct context *ctx)
 
void Plug_LockPlugin (struct context *ctx, qboolean lockstate)
 
int Plug_PluginThread (void *ctxptr)
 
qboolean Plug_StartContext (struct context *ctx)
 
void Plug_StopContext (struct context *ctx, qboolean wait)
 
struct context * Plug_CreateContext (void *sysctx, const struct browserfuncs *funcs)
 
qboolean Plug_ChangeWindow (struct context *ctx, void *whnd, int left, int top, int width, int height)
 
void Plug_DestroyContext (struct context *ctx)
 
void LoadSplashImage (struct dl_download *dl)
 
void CL_QTVPlay (vfsfile_t *newf, qboolean iseztv)
 
int pscript_property_running_getb (struct context *ctx)
 
void pscript_property_running_setb (struct context *ctx, int i)
 
char * pscript_property_startserver_gets (struct context *ctx)
 
void pscript_property_startserver_sets (struct context *ctx, const char *val)
 
char * pscript_property_curserver_gets (struct context *ctx)
 
void pscript_property_curserver_sets (struct context *ctx, const char *val)
 
void pscript_property_stream_sets (struct context *ctx, const char *val)
 
void pscript_property_map_sets (struct context *ctx, const char *val)
 
float pscript_property_curver_getf (struct context *ctx)
 
void pscript_property_availver_setf (struct context *ctx, float val)
 
void pscript_property_datadownload_sets (struct context *ctx, const char *val)
 
void pscript_property_game_sets (struct context *ctx, const char *val)
 
char * pscript_property_build_gets (struct context *ctx)
 
float pscript_property_multi_getf (struct context *ctx)
 
void pscript_property_multi_setf (struct context *ctx, float f)
 
int Plug_FindProp (struct context *ctx, const char *field)
 
qboolean Plug_SetString (struct context *ctx, int fieldidx, const char *value)
 
qboolean Plug_SetWString (struct context *ctx, int fieldidx, const wchar_t *value)
 
qboolean Plug_SetInteger (struct context *ctx, int fieldidx, int value)
 
qboolean Plug_SetFloat (struct context *ctx, int fieldidx, float value)
 
qboolean Plug_GetString (struct context *ctx, int fieldidx, const char **value)
 
void Plug_GotString (const char *value)
 
qboolean Plug_GetInteger (struct context *ctx, int fieldidx, int *value)
 
qboolean Plug_GetFloat (struct context *ctx, int fieldidx, float *value)
 
voidPlug_GetSplashBack (struct context *ctx, void *hdc, int *width, int *height)
 
void Plug_ReleaseSplashBack (struct context *ctx, void *bmp)
 
const struct plugfuncsPlug_GetFuncs (int ver)
 

Variables

voidglobalmutex
 
struct dl_downloadenginedownloadactive
 
HWND sys_parentwindow
 
unsigned int sys_parentwidth
 
unsigned int sys_parentheight
 
HINSTANCE global_hInstance
 
struct context * activecontext
 
struct context * contextlist
 
searchpathfuncs_t zipfilefuncs
 

Function Documentation

◆ BZ_Free()

void BZ_Free ( void ptr)

◆ BZ_Malloc()

void * BZ_Malloc ( int  size)

◆ BZF_Malloc()

void * BZF_Malloc ( int  size)

◆ CL_QTVPlay()

void CL_QTVPlay ( vfsfile_t newf,
qboolean  iseztv 
)

◆ cleanarg()

char * cleanarg ( char *  arg)

◆ COM_ParseType()

char * COM_ParseType ( const char *  data,
char *  out,
int  outlen,
com_tokentype_t toktype 
)

◆ COM_SkipPath()

char * COM_SkipPath ( const char *  pathname)

◆ COM_TrimString()

char * COM_TrimString ( char *  str,
char *  buffer,
int  buffersize 
)

◆ Con_DPrintf()

void VARGS Con_DPrintf ( const char *  fmt,
  ... 
)

◆ Con_Printf()

void VARGS Con_Printf ( const char *  fmt,
  ... 
)

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  fdwReason,
LPVOID  lpvReserved 
)

◆ linuxlike_snprintf()

int VARGS linuxlike_snprintf ( char *  buffer,
int  size,
const char *  format,
  ... 
)

◆ linuxlike_snprintf_vc8()

int VARGS linuxlike_snprintf_vc8 ( char *  buffer,
int  size,
const char *  format,
  ... 
)

◆ linuxlike_vsnprintf()

int VARGS linuxlike_vsnprintf ( char *  buffer,
int  size,
const char *  format,
va_list  argptr 
)

◆ LoadSplashImage()

void LoadSplashImage ( struct dl_download dl)

◆ MyRegDeleteKeyValue()

void MyRegDeleteKeyValue ( void base,
const char *  keyname,
const char *  valuename 
)

◆ MyRegGetStringValue()

qboolean MyRegGetStringValue ( void base,
const char *  keyname,
const char *  valuename,
void data,
size_t  datalen 
)

◆ MyRegSetValue()

qboolean MyRegSetValue ( void base,
const char *  keyname,
const char *  valuename,
int  type,
const void data,
int  datalen 
)

◆ NET_StringToSockaddr2()

size_t NET_StringToSockaddr2 ( const char *  s,
int  defaultport,
struct sockaddr_qstorage sadr,
int addrfamily,
int addrsize,
size_t  addrcount 
)

◆ Plug_ChangeWindow()

qboolean Plug_ChangeWindow ( struct context *  ctx,
void whnd,
int  left,
int  top,
int  width,
int  height 
)

◆ Plug_CreateContext()

struct context * Plug_CreateContext ( void sysctx,
const struct browserfuncs funcs 
)

◆ Plug_CreatePluginProcess()

qboolean Plug_CreatePluginProcess ( struct context *  ctx)

◆ Plug_DestroyContext()

void Plug_DestroyContext ( struct context *  ctx)

◆ Plug_ExecuteCommand()

void Plug_ExecuteCommand ( struct context *  ctx,
char *  message,
  ... 
)

◆ Plug_FindProp()

int Plug_FindProp ( struct context *  ctx,
const char *  field 
)

◆ Plug_GenCommandline()

int Plug_GenCommandline ( struct context *  ctx,
char **  argv,
int  maxargs 
)

◆ Plug_GenCommandlineString()

qboolean Plug_GenCommandlineString ( struct context *  ctx,
char *  cmdline,
int  cmdlinelen 
)

◆ Plug_GetBinaryName()

qboolean Plug_GetBinaryName ( char *  exe,
int  exelen,
char *  basedir,
int  basedirlen 
)

◆ Plug_GetDownloadedName()

qboolean Plug_GetDownloadedName ( char *  updatedpath,
int  updatedpathlen 
)

◆ Plug_GetFloat()

qboolean Plug_GetFloat ( struct context *  ctx,
int  fieldidx,
float *  value 
)

◆ Plug_GetFuncs()

const struct plugfuncs * Plug_GetFuncs ( int  ver)

◆ Plug_GetInteger()

qboolean Plug_GetInteger ( struct context *  ctx,
int  fieldidx,
int value 
)

◆ Plug_GetSplashBack()

void * Plug_GetSplashBack ( struct context *  ctx,
void hdc,
int width,
int height 
)

◆ Plug_GetString()

qboolean Plug_GetString ( struct context *  ctx,
int  fieldidx,
const char **  value 
)

◆ Plug_GotString()

void Plug_GotString ( const char *  value)

◆ Plug_LockPlugin()

void Plug_LockPlugin ( struct context *  ctx,
qboolean  lockstate 
)

◆ Plug_PluginThread()

int Plug_PluginThread ( void ctxptr)

◆ Plug_ReleaseSplashBack()

void Plug_ReleaseSplashBack ( struct context *  ctx,
void bmp 
)

◆ Plug_SetFloat()

qboolean Plug_SetFloat ( struct context *  ctx,
int  fieldidx,
float  value 
)

◆ Plug_SetInteger()

qboolean Plug_SetInteger ( struct context *  ctx,
int  fieldidx,
int  value 
)

◆ Plug_SetString()

qboolean Plug_SetString ( struct context *  ctx,
int  fieldidx,
const char *  value 
)

◆ Plug_SetWString()

qboolean Plug_SetWString ( struct context *  ctx,
int  fieldidx,
const wchar_t *  value 
)

◆ Plug_StartContext()

qboolean Plug_StartContext ( struct context *  ctx)

◆ Plug_StopContext()

void Plug_StopContext ( struct context *  ctx,
qboolean  wait 
)

◆ pscript_property_availver_setf()

void pscript_property_availver_setf ( struct context *  ctx,
float  val 
)

◆ pscript_property_build_gets()

char * pscript_property_build_gets ( struct context *  ctx)

◆ pscript_property_curserver_gets()

char * pscript_property_curserver_gets ( struct context *  ctx)

◆ pscript_property_curserver_sets()

void pscript_property_curserver_sets ( struct context *  ctx,
const char *  val 
)

◆ pscript_property_curver_getf()

float pscript_property_curver_getf ( struct context *  ctx)

◆ pscript_property_datadownload_sets()

void pscript_property_datadownload_sets ( struct context *  ctx,
const char *  val 
)

◆ pscript_property_game_sets()

void pscript_property_game_sets ( struct context *  ctx,
const char *  val 
)

◆ pscript_property_map_sets()

void pscript_property_map_sets ( struct context *  ctx,
const char *  val 
)

◆ pscript_property_multi_getf()

float pscript_property_multi_getf ( struct context *  ctx)

◆ pscript_property_multi_setf()

void pscript_property_multi_setf ( struct context *  ctx,
float  f 
)

◆ pscript_property_running_getb()

int pscript_property_running_getb ( struct context *  ctx)

◆ pscript_property_running_setb()

void pscript_property_running_setb ( struct context *  ctx,
int  i 
)

◆ pscript_property_startserver_gets()

char * pscript_property_startserver_gets ( struct context *  ctx)

◆ pscript_property_startserver_sets()

void pscript_property_startserver_sets ( struct context *  ctx,
const char *  val 
)

◆ pscript_property_stream_sets()

void pscript_property_stream_sets ( struct context *  ctx,
const char *  val 
)

◆ Q_snprintfz()

void VARGS Q_snprintfz ( char *  dest,
size_t  size,
const char *  fmt,
  ... 
)

◆ Q_strncpyz()

void QDECL Q_strncpyz ( char *  d,
const char *  s,
int  n 
)

◆ Q_vsnprintfz()

void VARGS Q_vsnprintfz ( char *  dest,
size_t  size,
const char *  fmt,
va_list  argptr 
)

◆ Sys_CloseLibrary()

void Sys_CloseLibrary ( dllhandle_t *  lib)

◆ Sys_LoadLibrary()

dllhandle_t * Sys_LoadLibrary ( const char *  name,
dllfunction_t funcs 
)

◆ Sys_mkdir()

void Sys_mkdir ( const char *  path)

◆ Update_GetHomeDirectory()

qboolean Update_GetHomeDirectory ( char *  homedir,
int  homedirsize 
)

◆ Update_Version_Updated()

void Update_Version_Updated ( struct dl_download dl)

◆ VFSPIPE_Close()

void VFSPIPE_Close ( vfsfile_t f)

◆ VFSPIPE_GetLen()

unsigned long VFSPIPE_GetLen ( vfsfile_t f)

◆ VFSPIPE_Open()

vfsfile_t * VFSPIPE_Open ( void  )

◆ VFSPIPE_ReadBytes()

int VFSPIPE_ReadBytes ( vfsfile_t f,
void buffer,
int  len 
)

◆ VFSPIPE_Seek()

qboolean VFSPIPE_Seek ( vfsfile_t f,
unsigned long  offset 
)

◆ VFSPIPE_Tell()

unsigned long VFSPIPE_Tell ( vfsfile_t f)

◆ VFSPIPE_WriteBytes()

int VFSPIPE_WriteBytes ( vfsfile_t f,
const void buffer,
int  len 
)

Variable Documentation

◆ activecontext

struct context* activecontext

◆ contextlist

struct context* contextlist

◆ enginedownloadactive

struct dl_download* enginedownloadactive

◆ global_hInstance

HINSTANCE global_hInstance

◆ globalmutex

void* globalmutex

◆ sys_parentheight

unsigned int sys_parentheight
extern

◆ sys_parentwidth

unsigned int sys_parentwidth
extern

◆ sys_parentwindow

HWND sys_parentwindow
extern

◆ zipfilefuncs

searchpathfuncs_t zipfilefuncs
extern