Main Page   File List   Globals  

FBinit.c File Reference

Initialization and clean up functions. More...

Go to the source code of this file.

Functions

int FB_initlib (char *dev)
int FB_exit ()

Variables

int FB_visible = 1


Detailed Description

begin : Fri Nov 24 2000
copyright : (C) 2000 by Daniele Venzano
email : venza@users.sf.net

Definition in file FBinit.c.


Function Documentation

int FB_initlib char *    dev
 

This function must be called before any other call to other parts of FBlib, it makes some initialization and sets up the handler for a nice VT switch.

Parameters:
dev  The framebuffer device name (eg. "/dev/fb0")

Definition at line 19 of file FBinit.c.

References DEFAULT_FONT, and FB_change_font().

int FB_exit  
 

You must call this at the end of your program to free up memory and reset the framebuffer device.

Return values:
OK  No error
IOCTL_ERR  The framebuffer settings could't be restored to their initial value

Definition at line 120 of file FBinit.c.

References FB_kb_end(), and FB_visible.


Variable Documentation

int FB_visible = 1
 

If TRUE user is on the same VT as FBlib program

Definition at line 16 of file FBinit.c.

Referenced by FB_exit().


Generated on Sat Jul 5 09:04:52 2003 for LibFB by doxygen1.2.18