FreeBASIC  0.91.0
fb_device.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  DEV_SCRN_INFO
 

Typedefs

typedef char *(* fb_FnDevReadString )(char *buffer, size_t count, FILE *fp)
 

Functions

int fb_DevConsOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevErrOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
void fb_hSetFileBufSize (FILE *fp)
 
int fb_DevFileOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevFileClose (FB_FILE *handle)
 
int fb_DevFileEof (FB_FILE *handle)
 
int fb_DevFileLock (FB_FILE *handle, fb_off_t position, fb_off_t size)
 
int fb_DevFileRead (FB_FILE *handle, void *value, size_t *pLength)
 
int fb_DevFileReadWstr (FB_FILE *handle, FB_WCHAR *dst, size_t *pchars)
 
int fb_DevFileReadLine (FB_FILE *handle, FBSTRING *dst)
 
int fb_DevFileReadLineWstr (FB_FILE *handle, FB_WCHAR *dst, ssize_t dst_chars)
 
int fb_DevFileSeek (FB_FILE *handle, fb_off_t offset, int whence)
 
int fb_hDevFileSeekStart (FILE *fp, int mode, FB_FILE_ENCOD encod, int seek_zero)
 
fb_off_t fb_DevFileGetSize (FILE *fp, int mode, FB_FILE_ENCOD encod, int seek_back)
 
int fb_DevFileTell (FB_FILE *handle, fb_off_t *pOffset)
 
int fb_DevFileUnlock (FB_FILE *handle, fb_off_t position, fb_off_t size)
 
int fb_DevFileWrite (FB_FILE *handle, const void *value, size_t valuelen)
 
int fb_DevFileWriteWstr (FB_FILE *handle, const FB_WCHAR *value, size_t valuelen)
 
int fb_DevFileFlush (FB_FILE *handle)
 
int fb_DevFileReadLineDumb (FILE *fp, FBSTRING *dst, fb_FnDevReadString pfnReadString)
 
int fb_DevFileOpenEncod (FB_FILE *handle, const char *filename, size_t fname_len)
 
int fb_DevFileOpenUTF (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevFileReadEncod (FB_FILE *handle, void *dst, size_t *max_chars)
 
int fb_DevFileReadEncodWstr (FB_FILE *handle, FB_WCHAR *dst, size_t *max_chars)
 
int fb_DevFileReadLineEncod (FB_FILE *handle, FBSTRING *dst)
 
int fb_DevFileReadLineEncodWstr (FB_FILE *handle, FB_WCHAR *dst, ssize_t max_chars)
 
int fb_DevFileWriteEncod (FB_FILE *handle, const void *buffer, size_t chars)
 
int fb_DevFileWriteEncodWstr (FB_FILE *handle, const FB_WCHAR *buffer, size_t len)
 
int fb_DevPipeOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevPipeClose (FB_FILE *handle)
 
void fb_DevScrnInit (void)
 
void fb_DevScrnInit_NoOpen (void)
 
void fb_DevScrnInit_Write (void)
 
void fb_DevScrnInit_WriteWstr (void)
 
void fb_DevScrnInit_Read (void)
 
void fb_DevScrnInit_ReadWstr (void)
 
void fb_DevScrnInit_ReadLine (void)
 
void fb_DevScrnInit_ReadLineWstr (void)
 
int fb_DevScrnOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevScrnClose (FB_FILE *handle)
 
int fb_DevScrnEof (FB_FILE *handle)
 
int fb_DevScrnRead (FB_FILE *handle, void *value, size_t *pLength)
 
int fb_DevScrnReadWstr (FB_FILE *handle, FB_WCHAR *dst, size_t *pchars)
 
int fb_DevScrnWrite (FB_FILE *handle, const void *value, size_t valuelen)
 
int fb_DevScrnWriteWstr (FB_FILE *handle, const FB_WCHAR *value, size_t valuelen)
 
int fb_DevScrnReadLine (FB_FILE *handle, FBSTRING *dst)
 
int fb_DevScrnReadLineWstr (FB_FILE *handle, FB_WCHAR *dst, ssize_t dst_chars)
 
void fb_DevScrnFillInput (DEV_SCRN_INFO *info)
 
int fb_DevStdIoClose (FB_FILE *handle)
 
int fb_DevLptOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevComOpen (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevComTestProtocol (FB_FILE *handle, const char *filename, size_t filename_len)
 
int fb_DevComTestProtocolEx (FB_FILE *handle, const char *filename, size_t filename_len, size_t *pPort)
 

Typedef Documentation

typedef char*(* fb_FnDevReadString)(char *buffer, size_t count, FILE *fp)

Definition at line 27 of file fb_device.h.

Function Documentation

int fb_DevComOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 126 of file dev_com.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevComTestProtocol ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 54 of file dev_com_test.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevComTestProtocolEx ( FB_FILE handle,
const char *  filename,
size_t  filename_len,
size_t *  pPort 
)

Definition at line 6 of file dev_com_test.c.

Here is the caller graph for this function:

int fb_DevConsOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 20 of file dev_cons_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevErrOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 20 of file dev_err_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileClose ( FB_FILE handle)

Definition at line 5 of file dev_file_close.c.

Here is the call graph for this function:

int fb_DevFileEof ( FB_FILE handle)

Definition at line 5 of file dev_file_eof.c.

int fb_DevFileFlush ( FB_FILE handle)

Definition at line 5 of file dev_file_flush.c.

Here is the call graph for this function:

fb_off_t fb_DevFileGetSize ( FILE *  fp,
int  mode,
FB_FILE_ENCOD  encod,
int  seek_back 
)

Definition at line 34 of file dev_file_size.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileLock ( FB_FILE handle,
fb_off_t  position,
fb_off_t  size 
)

Definition at line 5 of file dev_file_lock.c.

Here is the call graph for this function:

int fb_DevFileOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 30 of file dev_file_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileOpenEncod ( FB_FILE handle,
const char *  filename,
size_t  fname_len 
)

Definition at line 101 of file dev_file_encod_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileOpenUTF ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)
int fb_DevFileRead ( FB_FILE handle,
void *  value,
size_t *  pLength 
)

Definition at line 5 of file dev_file_read.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileReadEncod ( FB_FILE handle,
void *  dst,
size_t *  max_chars 
)

Definition at line 5 of file dev_file_encod_read.c.

Here is the call graph for this function:

int fb_DevFileReadEncodWstr ( FB_FILE handle,
FB_WCHAR dst,
size_t *  max_chars 
)

Definition at line 5 of file dev_file_encod_read_wstr.c.

Here is the call graph for this function:

int fb_DevFileReadLine ( FB_FILE handle,
FBSTRING dst 
)

Definition at line 115 of file dev_file_readline.c.

Here is the call graph for this function:

int fb_DevFileReadLineDumb ( FILE *  fp,
FBSTRING dst,
fb_FnDevReadString  pfnReadString 
)

Definition at line 11 of file dev_file_readline.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileReadLineEncod ( FB_FILE handle,
FBSTRING dst 
)

Definition at line 5 of file dev_file_encod_readline.c.

Here is the call graph for this function:

int fb_DevFileReadLineEncodWstr ( FB_FILE handle,
FB_WCHAR dst,
ssize_t  max_chars 
)

Definition at line 5 of file dev_file_encod_readline_wstr.c.

Here is the call graph for this function:

int fb_DevFileReadLineWstr ( FB_FILE handle,
FB_WCHAR dst,
ssize_t  dst_chars 
)

Definition at line 5 of file dev_file_readline_wstr.c.

Here is the call graph for this function:

int fb_DevFileReadWstr ( FB_FILE handle,
FB_WCHAR dst,
size_t *  pchars 
)

Definition at line 5 of file dev_file_read_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevFileSeek ( FB_FILE handle,
fb_off_t  offset,
int  whence 
)

Definition at line 5 of file dev_file_seek.c.

Here is the call graph for this function:

int fb_DevFileTell ( FB_FILE handle,
fb_off_t pOffset 
)

Definition at line 5 of file dev_file_tell.c.

Here is the call graph for this function:

int fb_DevFileUnlock ( FB_FILE handle,
fb_off_t  position,
fb_off_t  size 
)

Definition at line 5 of file dev_file_unlock.c.

Here is the call graph for this function:

int fb_DevFileWrite ( FB_FILE handle,
const void *  value,
size_t  valuelen 
)

Definition at line 5 of file dev_file_write.c.

Here is the call graph for this function:

int fb_DevFileWriteEncod ( FB_FILE handle,
const void *  buffer,
size_t  chars 
)

Definition at line 5 of file dev_file_encod_write.c.

Here is the call graph for this function:

int fb_DevFileWriteEncodWstr ( FB_FILE handle,
const FB_WCHAR buffer,
size_t  len 
)

Definition at line 5 of file dev_file_encod_write_wstr.c.

Here is the call graph for this function:

int fb_DevFileWriteWstr ( FB_FILE handle,
const FB_WCHAR value,
size_t  valuelen 
)

Definition at line 5 of file dev_file_write_wstr.c.

Here is the call graph for this function:

int fb_DevLptOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 64 of file dev_lpt.c.

int fb_DevPipeClose ( FB_FILE handle)

Definition at line 5 of file dev_pipe_close.c.

Here is the call graph for this function:

int fb_DevPipeOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 29 of file dev_pipe_open.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnClose ( FB_FILE handle)

Definition at line 5 of file dev_scrn_close.c.

Here is the call graph for this function:

int fb_DevScrnEof ( FB_FILE handle)

Definition at line 27 of file dev_scrn_eof.c.

Here is the call graph for this function:

void fb_DevScrnFillInput ( DEV_SCRN_INFO info)

Definition at line 5 of file dev_scrn_eof.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit ( void  )

Definition at line 47 of file dev_scrn.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit_NoOpen ( void  )

Definition at line 20 of file dev_scrn_init.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit_Read ( void  )

Definition at line 57 of file dev_scrn_read.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit_ReadLine ( void  )

Definition at line 10 of file dev_scrn_readline.c.

Here is the call graph for this function:

void fb_DevScrnInit_ReadLineWstr ( void  )

Definition at line 22 of file dev_scrn_readline_wstr.c.

Here is the call graph for this function:

void fb_DevScrnInit_ReadWstr ( void  )

Definition at line 63 of file dev_scrn_read_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit_Write ( void  )

Definition at line 11 of file dev_scrn_write.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void fb_DevScrnInit_WriteWstr ( void  )

Definition at line 11 of file dev_scrn_write_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnOpen ( FB_FILE handle,
const char *  filename,
size_t  filename_len 
)

Definition at line 22 of file dev_scrn.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnRead ( FB_FILE handle,
void *  value,
size_t *  pLength 
)

Definition at line 5 of file dev_scrn_read.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnReadLine ( FB_FILE handle,
FBSTRING dst 
)

Definition at line 5 of file dev_scrn_readline.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnReadLineWstr ( FB_FILE handle,
FB_WCHAR dst,
ssize_t  dst_chars 
)

Definition at line 5 of file dev_scrn_readline_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnReadWstr ( FB_FILE handle,
FB_WCHAR dst,
size_t *  pchars 
)

Definition at line 5 of file dev_scrn_read_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnWrite ( FB_FILE handle,
const void *  value,
size_t  valuelen 
)

Definition at line 5 of file dev_scrn_write.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevScrnWriteWstr ( FB_FILE handle,
const FB_WCHAR value,
size_t  valuelen 
)

Definition at line 5 of file dev_scrn_write_wstr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int fb_DevStdIoClose ( FB_FILE handle)

Definition at line 5 of file dev_stdio_close.c.

Here is the call graph for this function:

int fb_hDevFileSeekStart ( FILE *  fp,
int  mode,
FB_FILE_ENCOD  encod,
int  seek_zero 
)

Definition at line 5 of file dev_file_size.c.

Here is the caller graph for this function:

void fb_hSetFileBufSize ( FILE *  fp)

Definition at line 22 of file dev_file_open.c.

Here is the caller graph for this function: