UniMRCP  1.7.0
mrcp_engine_factory.h
Go to the documentation of this file.
1 /*
2  * Copyright 2008-2015 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 
17 #ifndef MRCP_ENGINE_FACTORY_H
18 #define MRCP_ENGINE_FACTORY_H
19 
20 /**
21  * @file mrcp_engine_factory.h
22  * @brief Factory of MRCP Engines
23  */
24 
25 #include "mrcp_engine_iface.h"
26 
28 
29 /** Opaque engine factory declaration */
31 
32 /** Create engine factory */
34 
35 /** Destroy registered engines and the factory */
37 
38 /** Open registered engines */
40 
41 /** Close registered engines */
43 
44 
45 /** Register engine */
47 
48 /** Get engine by name */
50 
51 /** Find engine by resource identifier */
53 
54 /** Start iterating over the engines in a factory */
56 
57 
59 
60 #endif /* MRCP_ENGINE_FACTORY_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
apt_bool_t mrcp_engine_factory_close(mrcp_engine_factory_t *factory)
MRCP Engine User Interface (typically user is an MRCP server)
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
mrcp_engine_t * mrcp_engine_factory_engine_find(const mrcp_engine_factory_t *factory, mrcp_resource_id resource_id)
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
typedefAPT_BEGIN_EXTERN_C struct mrcp_engine_factory_t mrcp_engine_factory_t
Definition: mrcp_engine_factory.h:30
apr_size_t mrcp_resource_id
Definition: mrcp_types.h:68
apr_hash_index_t * mrcp_engine_factory_engine_first(const mrcp_engine_factory_t *factory)
apt_bool_t mrcp_engine_factory_destroy(mrcp_engine_factory_t *factory)
mrcp_engine_t * mrcp_engine_factory_engine_get(const mrcp_engine_factory_t *factory, const char *name)
apt_bool_t mrcp_engine_factory_open(mrcp_engine_factory_t *factory)
apt_bool_t mrcp_engine_factory_engine_register(mrcp_engine_factory_t *factory, mrcp_engine_t *engine)
Definition: mrcp_engine_types.h:119
mrcp_engine_factory_t * mrcp_engine_factory_create(apr_pool_t *pool)