UniMRCP  1.5.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
mrcp_session.h File Reference

Abstract MRCP Session. More...

#include "mrcp_sig_types.h"
#include "mpf_types.h"
#include "apt_string.h"

Go to the source code of this file.

Data Structures

struct  mrcp_session_t
 
struct  mrcp_session_request_vtable_t
 
struct  mrcp_session_response_vtable_t
 
struct  mrcp_session_event_vtable_t
 

Macros

#define MRCP_SESSION_PTR(session)   (session)
 
#define MRCP_SESSION_SID(session)   (session)->id.buf ? (session)->id.buf : "new"
 
#define MRCP_SESSION_PTRSID(session)   MRCP_SESSION_PTR(session), MRCP_SESSION_SID(session)
 

Typedefs

typedef struct
mrcp_session_request_vtable_t 
mrcp_session_request_vtable_t
 
typedef struct
mrcp_session_response_vtable_t 
mrcp_session_response_vtable_t
 
typedef struct
mrcp_session_event_vtable_t 
mrcp_session_event_vtable_t
 

Functions

mrcp_session_tmrcp_session_create (apr_size_t padding)
 
mrcp_session_tmrcp_session_create_ex (apr_pool_t *pool, apt_bool_t take_ownership, apr_size_t padding)
 
void mrcp_session_destroy (mrcp_session_t *session)
 

Detailed Description

Abstract MRCP Session.

Macro Definition Documentation

#define MRCP_SESSION_PTR (   session)    (session)

Macro to log session pointers

#define MRCP_SESSION_PTRSID (   session)    MRCP_SESSION_PTR(session), MRCP_SESSION_SID(session)

Macro to log session pointers and string identifiers

#define MRCP_SESSION_SID (   session)    (session)->id.buf ? (session)->id.buf : "new"

Macro to log session string identifiers

Typedef Documentation

MRCP session event vtable declaration

MRCP session request vtable declaration

MRCP session response vtable declaration

Function Documentation

mrcp_session_t* mrcp_session_create ( apr_size_t  padding)

Create new memory pool and allocate session object from the pool.

mrcp_session_t* mrcp_session_create_ex ( apr_pool_t *  pool,
apt_bool_t  take_ownership,
apr_size_t  padding 
)

Allocate session object from the provided memory pool. Take over the ownership of the pool, if take_ownership is TRUE

void mrcp_session_destroy ( mrcp_session_t session)

Destroy session and assosiated memory pool.