UniMRCP
1.3.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
mrcp
control
include
mrcp_stream.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 Arsen Chaloyan
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
* $Id: mrcp_stream.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MRCP_STREAM_H
20
#define MRCP_STREAM_H
21
22
/**
23
* @file mrcp_stream.h
24
* @brief MRCP Stream Parser and Generator
25
*/
26
27
#include "
apt_text_message.h
"
28
#include "
mrcp_types.h
"
29
30
APT_BEGIN_EXTERN_C
31
32
33
/** Opaque MRCP parser declaration */
34
typedef
struct
mrcp_parser_t
mrcp_parser_t
;
35
/** Opaque MRCP generator declaration */
36
typedef
struct
mrcp_generator_t
mrcp_generator_t
;
37
38
39
/** Create MRCP stream parser */
40
MRCP_DECLARE
(
mrcp_parser_t
*)
mrcp_parser_create
(const
mrcp_resource_factory_t
*resource_factory, apr_pool_t *pool);
41
42
/** Set resource by name to be used for parsing of MRCPv1 messages */
43
MRCP_DECLARE
(
void
)
mrcp_parser_resource_set
(
mrcp_parser_t
*parser, const
apt_str_t
*resource_name);
44
45
/** Set verbose mode for the parser */
46
MRCP_DECLARE
(
void
)
mrcp_parser_verbose_set
(
mrcp_parser_t
*parser,
apt_bool_t
verbose);
47
48
/** Parse MRCP stream */
49
MRCP_DECLARE
(
apt_message_status_e
)
mrcp_parser_run
(
mrcp_parser_t
*parser,
apt_text_stream_t
*stream,
mrcp_message_t
**message);
50
51
52
53
/** Create MRCP stream generator */
54
MRCP_DECLARE
(
mrcp_generator_t
*)
mrcp_generator_create
(const
mrcp_resource_factory_t
*resource_factory, apr_pool_t *pool);
55
56
/** Set verbose mode for the generator */
57
MRCP_DECLARE
(
void
)
mrcp_generator_verbose_set
(
mrcp_generator_t
*generator,
apt_bool_t
verbose);
58
59
/** Generate MRCP stream */
60
MRCP_DECLARE
(
apt_message_status_e
)
mrcp_generator_run
(
mrcp_generator_t
*generator,
mrcp_message_t
*message,
apt_text_stream_t
*stream);
61
62
63
/** Generate MRCP message (excluding message body) */
64
MRCP_DECLARE
(
apt_bool_t
)
mrcp_message_generate
(const
mrcp_resource_factory_t
*resource_factory,
mrcp_message_t
*message,
apt_text_stream_t
*stream);
65
66
67
APT_END_EXTERN_C
68
69
#endif
/* MRCP_STREAM_H */
Generated on Mon Feb 2 2015 19:41:39 for UniMRCP by
1.8.3.1