Koala Library
koala_init.c File Reference

init library of the Koala extension board More...

Include dependency graph for koala_init.c:

Go to the source code of this file.

Functions

int koala_init (int argc, char *argv[])
void koala_exit (void)

Variables

static int koala_init_done = 0
struct option opts []
char short_opts [] = "d:v"

Detailed Description

init library of the Koala extension board

Definition in file koala_init.c.


Function Documentation

void koala_exit ( void  )

This function is called automatically on exit and call the 'exit' of all sub layer.

Remarks:
This function is called automatically at the terminaison of the application.

Definition at line 121 of file koala_init.c.

References koala_init_done, and koala_robot_release().

Referenced by koala_init().

Here is the call graph for this function:

int koala_init ( int  argc,
char *  argv[] 
)

This function initializes the koala Library

Parameters:
argcnumber of arguments
argvpointer table of arguments
Returns:
A value 0 : Ok 1 : already done <0 : error

Definition at line 72 of file koala_init.c.

References koala_exit(), koala_init_done, KOALA_REVISION, koala_robot_init(), KOALA_VERSION, opts, and short_opts.

Referenced by main().

Here is the call graph for this function:


Variable Documentation

int koala_init_done = 0 [static]

Definition at line 44 of file koala_init.c.

Referenced by koala_exit(), and koala_init().

struct option opts[]
Initial value:
 {   
  { "debug" ,   0 , 0 , 'd' } ,
  { "version" , 0 , 0 , 'v' } ,
  { NULL      ,    0 , 0 , 0    }
}

Definition at line 47 of file koala_init.c.

Referenced by koala_init().

char short_opts[] = "d:v"

Definition at line 54 of file koala_init.c.

Referenced by koala_init().