example_utils.h File Reference


Detailed Description

HTTP embedded server library Copyright (C) 2006-2007 Olivier Singla http://mihl.sourceforge.net/.

Definition in file example_utils.h.

Include dependency graph for example_utils.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static int set_tty_raw (void)
 TBD.
static void bye_bye (void)
 TBD.
static int peekch (void)
 TBD.
static void delay (int msec)
 TBD.
static void help (int port)
 TBD.
static int peek_key (mihl_ctx_t *ctx)
 TBD.

Variables

static int initialized = 0
static struct termios termattr save_termattr


Function Documentation

static int set_tty_raw ( void   )  [static]

TBD.

Returns:
  • X
  • or -1 if an error occurred (errno is then set).

Definition at line 26 of file example_utils.h.

References save_termattr.

Referenced by peekch().

Here is the caller graph for this function:

static void bye_bye ( void   )  [static]

TBD.

Definition at line 56 of file example_utils.h.

References initialized, and save_termattr.

Referenced by peekch().

Here is the caller graph for this function:

static int peekch ( void   )  [static]

TBD.

Returns:
  • X
  • or -1 if an error occurred (errno is then set).

Definition at line 68 of file example_utils.h.

References bye_bye(), initialized, and set_tty_raw().

Referenced by peek_key().

Here is the call graph for this function:

Here is the caller graph for this function:

static void delay ( int  msec  )  [inline, static]

TBD.

Parameters:
msec TBD

Definition at line 90 of file example_utils.h.

Referenced by peek_key().

Here is the caller graph for this function:

static void help ( int  port  )  [static]

TBD.

Definition at line 97 of file example_utils.h.

Referenced by main().

Here is the caller graph for this function:

static int peek_key ( mihl_ctx_t ctx  )  [static]

TBD.

Parameters:
ctx opaque context structure as returned by mihl_init()
Returns:
  • X
  • or -1 if an error occurred (errno is then set).

Definition at line 113 of file example_utils.h.

References delay(), mihl_dump_info(), mihl_dump_info_handlers(), mihl_get_log_level(), MIHL_LOG_DEBUG, MIHL_LOG_INFO_VERBOSE, mihl_set_log_level(), and peekch().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

int initialized = 0 [static]

Definition at line 15 of file example_utils.h.

Referenced by bye_bye(), and peekch().

struct termios termattr save_termattr [static]

Definition at line 17 of file example_utils.h.

Referenced by bye_bye(), and set_tty_raw().


Generated on Mon May 26 18:06:09 2008 for milh-example_2 by  doxygen 1.5.6