BRL-CAD
fb_private.h File Reference
#include "common.h"
#include <limits.h>
#include <stdlib.h>
#include "fb.h"
Include dependency graph for fb_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  fb_internal
 A frame-buffer IO structure. More...
 

Macros

#define SHMEM_KEY   42
 

Functions

int fb_sim_readrect (fb *ifp, int xmin, int ymin, int _width, int _height, unsigned char *pp)
 
int fb_sim_writerect (fb *ifp, int xmin, int ymin, int _width, int _height, const unsigned char *pp)
 
int fb_sim_bwreadrect (fb *ifp, int xmin, int ymin, int _width, int _height, unsigned char *pp)
 
int fb_sim_bwwriterect (fb *ifp, int xmin, int ymin, int _width, int _height, const unsigned char *pp)
 
int fb_sim_view (fb *ifp, int xcenter, int ycenter, int xzoom, int yzoom)
 
int fb_sim_getview (fb *ifp, int *xcenter, int *ycenter, int *xzoom, int *yzoom)
 
int fb_sim_cursor (fb *ifp, int mode, int x, int y)
 
int fb_sim_getcursor (fb *ifp, int *mode, int *x, int *y)
 

Variables

fb debug_interface
 
fb disk_interface
 
fb stk_interface
 
fb memory_interface
 
fb null_interface
 
int _fb_disk_enable
 

Detailed Description

Private header for libfb.

Definition in file fb_private.h.

Macro Definition Documentation

#define SHMEM_KEY   42

Definition at line 65 of file fb_private.h.

Function Documentation

int fb_sim_readrect ( fb ifp,
int  xmin,
int  ymin,
int  _width,
int  _height,
unsigned char *  pp 
)

Definition at line 45 of file fb_rect.c.

References fb_log(), and fb_read().

Here is the call graph for this function:

int fb_sim_writerect ( fb ifp,
int  xmin,
int  ymin,
int  _width,
int  _height,
const unsigned char *  pp 
)

Definition at line 78 of file fb_rect.c.

References fb_getwidth(), fb_write(), and OSL::Strings::width.

Here is the call graph for this function:

int fb_sim_bwreadrect ( fb ifp,
int  xmin,
int  ymin,
int  _width,
int  _height,
unsigned char *  pp 
)

Definition at line 102 of file fb_rect.c.

References fb_log(), fb_read(), GRN, SIMBUF_SIZE, and OSL::Strings::width.

Here is the call graph for this function:

int fb_sim_bwwriterect ( fb ifp,
int  xmin,
int  ymin,
int  _width,
int  _height,
const unsigned char *  pp 
)

Definition at line 132 of file fb_rect.c.

References bp, fb_getwidth(), fb_log(), fb_write(), SIMBUF_SIZE, and OSL::Strings::width.

Here is the call graph for this function:

int fb_sim_view ( fb ifp,
int  xcenter,
int  ycenter,
int  xzoom,
int  yzoom 
)
int fb_sim_getview ( fb ifp,
int *  xcenter,
int *  ycenter,
int *  xzoom,
int *  yzoom 
)
int fb_sim_cursor ( fb ifp,
int  mode,
int  x,
int  y 
)

Definition at line 79 of file fb_util.c.

References FB_CK_FB, fb_internal::if_cursmode, fb_internal::if_xcurs, and fb_internal::if_ycurs.

Referenced by deb_cursor(), and mem_cursor().

int fb_sim_getcursor ( fb ifp,
int *  mode,
int *  x,
int *  y 
)

Variable Documentation

fb debug_interface

Definition at line 362 of file if_debug.c.

Referenced by deb_help().

fb disk_interface

Definition at line 356 of file if_disk.c.

Referenced by dsk_help(), fb_genhelp(), and fb_open().

fb stk_interface

Definition at line 435 of file if_stack.c.

fb memory_interface

Definition at line 471 of file if_mem.c.

Referenced by mem_help().

fb null_interface

Definition at line 257 of file if_null.c.

Referenced by null_help().

int _fb_disk_enable

Disk interface enable flag. Used so the remote daemon can turn off the disk interface.

Definition at line 353 of file fb_generic.c.