console_video.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  drag_info
 support for drag actions More...
struct  fbuf_t
struct  grab_desc

Defines

#define CONSOLE_VIDEO_CMDS   "console {device}"
#define MAX_VIDEO_SOURCES   9
#define SRC_WIN_H   60
#define SRC_WIN_W   80

Enumerations

enum  drag_window {
  DRAG_NONE, DRAG_LOCAL, DRAG_REMOTE, DRAG_DIALED,
  DRAG_INPUT, DRAG_MESSAGE, DRAG_PIP
}
enum  kb_output { KO_NONE, KO_INPUT, KO_DIALED, KO_MESSAGE }

Functions

int console_video_cli (struct video_desc *env, const char *var, int fd)
int console_video_config (struct video_desc **penv, const char *var, const char *val)
void console_video_start (struct video_desc *env, struct ast_channel *owner)
void console_video_uninit (struct video_desc *env)
int console_write_video (struct ast_channel *chan, struct ast_frame *f)
void delete_board (struct board *b)
 deallocates memory space for a board
void fbuf_free (struct fbuf_t *)
int get_gui_startup (struct video_desc *env)
struct video_desc * get_video_desc (struct ast_channel *c)
 return the pointer to the video descriptor
void move_message_board (struct board *b, int dy)
int print_message (struct board *b, const char *s)
const char * read_message (const struct board *b)
 return the whole text from a board
int reset_board (struct board *b)
 reset the board to blank

Variables

struct grab_descconsole_grabbers []
int console_video_formats


Define Documentation

#define CONSOLE_VIDEO_CMDS   "console {device}"

Definition at line 27 of file console_video.h.

Referenced by console_cmd().

#define MAX_VIDEO_SOURCES   9

Definition at line 51 of file console_video.h.

#define SRC_WIN_H   60

Definition at line 47 of file console_video.h.

#define SRC_WIN_W   80

Definition at line 46 of file console_video.h.


Enumeration Type Documentation

Enumerator:
DRAG_NONE 
DRAG_LOCAL 
DRAG_REMOTE 
DRAG_DIALED 
DRAG_INPUT 
DRAG_MESSAGE 
DRAG_PIP 

Definition at line 112 of file console_video.h.

00112                  {   /* which window are we dragging */
00113    DRAG_NONE,
00114    DRAG_LOCAL, /* local video */
00115    DRAG_REMOTE,   /* remote video */
00116    DRAG_DIALED,   /* dialed number */
00117    DRAG_INPUT, /* input window */
00118    DRAG_MESSAGE,  /* message window */
00119    DRAG_PIP,   /* picture in picture */
00120 };

enum kb_output

Enumerator:
KO_NONE 
KO_INPUT 
KO_DIALED 
KO_MESSAGE 

Definition at line 105 of file console_video.h.

00105                {
00106    KO_NONE,
00107    KO_INPUT,   /* the local input window */
00108    KO_DIALED,  /* the 'dialed number' window */
00109    KO_MESSAGE, /* the 'message' window */
00110 };


Function Documentation

int console_video_cli ( struct video_desc *  env,
const char *  var,
int  fd 
)

Definition at line 125 of file console_video.c.

Referenced by console_cmd().

00126 {
00127    return 1;   /* nothing matched */
00128 }

int console_video_config ( struct video_desc **  penv,
const char *  var,
const char *  val 
)

Definition at line 130 of file console_video.c.

Referenced by store_config_core().

00131 {
00132    return 1;   /* no configuration */
00133 }

void console_video_start ( struct video_desc *  env,
struct ast_channel owner 
)

Definition at line 135 of file console_video.c.

References ast_log, and LOG_NOTICE.

Referenced by oss_new(), and store_config().

00136 {
00137    ast_log(LOG_NOTICE, "voice only, console video support not present\n");
00138 }

void console_video_uninit ( struct video_desc *  env  ) 

Definition at line 140 of file console_video.c.

Referenced by oss_hangup().

00141 {
00142 }

int console_write_video ( struct ast_channel chan,
struct ast_frame f 
)

Definition at line 120 of file console_video.c.

00121 {
00122    return 0;   /* writing video not supported */
00123 }

void delete_board ( struct board *  b  ) 

deallocates memory space for a board

void fbuf_free ( struct fbuf_t  ) 

Referenced by dec_uninit().

int get_gui_startup ( struct video_desc *  env  ) 

Definition at line 144 of file console_video.c.

Referenced by store_config().

00145 {
00146    return 0; /* no gui here */
00147 }

struct video_desc* get_video_desc ( struct ast_channel c  )  [read]

return the pointer to the video descriptor

Definition at line 316 of file chan_oss.c.

References ast_channel_tech_pvt(), chan_oss_pvt::env, find_desc(), and NULL.

Referenced by oss_new().

00317 {
00318    struct chan_oss_pvt *o = c ? ast_channel_tech_pvt(c) : find_desc(oss_active);
00319    return o ? o->env : NULL;
00320 }

void move_message_board ( struct board *  b,
int  dy 
)

int print_message ( struct board *  b,
const char *  s 
)

const char* read_message ( const struct board *  b  ) 

return the whole text from a board

int reset_board ( struct board *  b  ) 

reset the board to blank


Variable Documentation

Definition at line 149 of file console_video.c.


Generated on Thu Apr 16 06:30:29 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6