jabberd2  2.3.1
Macros | Functions
pbx.c File Reference

PBX integration. More...

#include "c2s.h"

Go to the source code of this file.

Macros

#define COMMANDLINE_LENGTH_MAX   2048
 

Functions

static void _pbx_close_pipe (c2s_t c2s)
 
static void _pbx_open_pipe (c2s_t c2s, int mode)
 
static void _pbx_read_pipe (c2s_t c2s)
 
static void _pbx_write_pipe (c2s_t c2s)
 
int _pbx_process_command (c2s_t c2s, const char *cmd)
 process commandline More...
 
static void _pbx_read_command (c2s_t c2s)
 
static int _pbx_mio_callback (mio_t m, mio_action_t a, mio_fd_t fd, void *data, void *arg)
 
void c2s_pbx_init (c2s_t c2s)
 

Detailed Description

PBX integration.

Author
Tomasz Sterna $Date$ $Revision$

Definition in file pbx.c.

Macro Definition Documentation

#define COMMANDLINE_LENGTH_MAX   2048

Definition at line 30 of file pbx.c.

Referenced by _pbx_read_command().

Function Documentation

static void _pbx_close_pipe ( c2s_t  c2s)
static

Definition at line 84 of file pbx.c.

References log_debug, c2s_st::mio, mio_close, c2s_st::pbx_pipe_mio_fd, and ZONE.

Referenced by _pbx_mio_callback(), and _pbx_read_command().

static void _pbx_open_pipe ( c2s_t  c2s,
int  mode 
)
static
static void _pbx_read_pipe ( c2s_t  c2s)
static

Definition at line 108 of file pbx.c.

References _pbx_open_pipe(), log_debug, c2s_st::mio, mio_read, c2s_st::pbx_pipe_mio_fd, and ZONE.

Referenced by _pbx_read_command(), and c2s_pbx_init().

static void _pbx_write_pipe ( c2s_t  c2s)
static

Definition at line 114 of file pbx.c.

References _pbx_open_pipe(), log_debug, c2s_st::mio, mio_write, c2s_st::pbx_pipe_mio_fd, and ZONE.

Referenced by _pbx_read_command().

int _pbx_process_command ( c2s_t  c2s,
const char *  cmd 
)
static void _pbx_read_command ( c2s_t  c2s)
static
static int _pbx_mio_callback ( mio_t  m,
mio_action_t  a,
mio_fd_t  fd,
void *  data,
void *  arg 
)
static
void c2s_pbx_init ( c2s_t  c2s)

Definition at line 120 of file pbx.c.

References _pbx_read_pipe(), c2s_st::log, log_debug, log_write(), c2s_st::pbx_pipe, and ZONE.

Referenced by c2s_router_sx_callback().