UniMRCP  1.7.0
mrcp_resource_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_RESOURCE_FACTORY_H
18 #define MRCP_RESOURCE_FACTORY_H
19 
20 /**
21  * @file mrcp_resource_factory.h
22  * @brief Aggregation of MRCP Resources
23  */
24 
25 #include "apt_text_stream.h"
26 #include "mrcp_types.h"
27 
29 
30 /** Create MRCP resource factory */
31 MRCP_DECLARE(mrcp_resource_factory_t*) mrcp_resource_factory_create(apr_size_t resource_count, apr_pool_t *pool);
32 
33 /** Destroy MRCP resource factory */
35 
36 /** Register MRCP resource */
38 
39 /** Get MRCP resource by resource id */
41 
42 /** Find MRCP resource by resource name */
44 
45 
47 
48 #endif /* MRCP_RESOURCE_FACTORY_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
mrcp_resource_t * mrcp_resource_find(const mrcp_resource_factory_t *resource_factory, const apt_str_t *name)
#define APT_END_EXTERN_C
Definition: apt.h:38
int apt_bool_t
Definition: apt.h:57
apt_bool_t mrcp_resource_factory_destroy(mrcp_resource_factory_t *resource_factory)
struct mrcp_resource_factory_t mrcp_resource_factory_t
Definition: mrcp_types.h:76
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Basic MRCP Types.
APT_BEGIN_EXTERN_C mrcp_resource_factory_t * mrcp_resource_factory_create(apr_size_t resource_count, apr_pool_t *pool)
apr_size_t mrcp_resource_id
Definition: mrcp_types.h:68
apt_bool_t mrcp_resource_register(mrcp_resource_factory_t *resource_factory, mrcp_resource_t *resource)
Definition: apt_string.h:36
Definition: mrcp_resource.h:32
mrcp_resource_t * mrcp_resource_get(const mrcp_resource_factory_t *resource_factory, mrcp_resource_id resource_id)
Text Stream Parse/Generate Routine.