jabberd2  2.2.16
Defines | Functions
c2s/pbx.c File Reference

PBX integration. More...

#include "c2s.h"

Go to the source code of this file.

Defines

#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, char *cmd)
 process commandline
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.


Define 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, ZONE, c2s_st::pbx_pipe_mio_fd, mio_close, and c2s_st::mio.

Referenced by _pbx_read_command(), and _pbx_mio_callback().

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 log_debug, ZONE, _pbx_open_pipe(), mio_read, c2s_st::mio, and c2s_st::pbx_pipe_mio_fd.

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 log_debug, ZONE, _pbx_open_pipe(), mio_write, c2s_st::mio, and c2s_st::pbx_pipe_mio_fd.

Referenced by _pbx_read_command().

int _pbx_process_command ( c2s_t  c2s,
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 log_debug, ZONE, log_write(), c2s_st::log, c2s_st::pbx_pipe, and _pbx_read_pipe().

Referenced by c2s_router_sx_callback().