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-engine
include
mrcp_engine_factory.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_engine_factory.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef MRCP_ENGINE_FACTORY_H
20
#define MRCP_ENGINE_FACTORY_H
21
22
/**
23
* @file mrcp_engine_factory.h
24
* @brief Factory of MRCP Engines
25
*/
26
27
#include "
mrcp_engine_iface.h
"
28
29
APT_BEGIN_EXTERN_C
30
31
/** Opaque engine factory declaration */
32
typedef
struct
mrcp_engine_factory_t
mrcp_engine_factory_t
;
33
34
/** Create engine factory */
35
MRCP_DECLARE
(
mrcp_engine_factory_t
*)
mrcp_engine_factory_create
(apr_pool_t *pool);
36
37
/** Destroy registered engines and the factory */
38
MRCP_DECLARE
(
apt_bool_t
)
mrcp_engine_factory_destroy
(
mrcp_engine_factory_t
*factory);
39
40
/** Open registered engines */
41
MRCP_DECLARE
(
apt_bool_t
)
mrcp_engine_factory_open
(
mrcp_engine_factory_t
*factory);
42
43
/** Close registered engines */
44
MRCP_DECLARE
(
apt_bool_t
)
mrcp_engine_factory_close
(
mrcp_engine_factory_t
*factory);
45
46
47
/** Register engine */
48
MRCP_DECLARE
(
apt_bool_t
)
mrcp_engine_factory_engine_register
(
mrcp_engine_factory_t
*factory,
mrcp_engine_t
*engine);
49
50
/** Get engine by name */
51
MRCP_DECLARE
(
mrcp_engine_t
*)
mrcp_engine_factory_engine_get
(const
mrcp_engine_factory_t
*factory, const
char
*name);
52
53
/** Find engine by resource identifier */
54
MRCP_DECLARE
(
mrcp_engine_t
*)
mrcp_engine_factory_engine_find
(const
mrcp_engine_factory_t
*factory,
mrcp_resource_id
resource_id);
55
56
/** Start iterating over the engines in a factory */
57
MRCP_DECLARE
(apr_hash_index_t*)
mrcp_engine_factory_engine_first
(const
mrcp_engine_factory_t
*factory);
58
59
60
APT_END_EXTERN_C
61
62
#endif
/* MRCP_ENGINE_FACTORY_H */
Generated on Mon Feb 2 2015 19:41:39 for UniMRCP by
1.8.3.1