UniMRCP  1.7.0
mrcp_resource_loader.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_LOADER_H
18 #define MRCP_RESOURCE_LOADER_H
19 
20 /**
21  * @file mrcp_resource_loader.h
22  * @brief MRCP Resource Loader
23  */
24 
25 #include "apt_string.h"
26 #include "mrcp_types.h"
27 
29 
30 /** Opaque resource loader declaration */
32 
33 
34 /** Create MRCP resource loader */
35 MRCP_DECLARE(mrcp_resource_loader_t*) mrcp_resource_loader_create(apt_bool_t load_all_resources, apr_pool_t *pool);
36 
37 /** Load all MRCP resources */
39 
40 /** Load MRCP resource by resource name */
42 
43 /** Load MRCP resource by resource identifier */
45 
46 /** Get MRCP resource factory */
48 
50 
51 #endif /* MRCP_RESOURCE_LOADER_H */
#define MRCP_DECLARE(type)
Definition: mrcp.h:40
#define APT_END_EXTERN_C
Definition: apt.h:38
apt_bool_t mrcp_resource_load_by_id(mrcp_resource_loader_t *loader, mrcp_resource_id id)
int apt_bool_t
Definition: apt.h:57
mrcp_resource_loader_t * mrcp_resource_loader_create(apt_bool_t load_all_resources, apr_pool_t *pool)
struct mrcp_resource_factory_t mrcp_resource_factory_t
Definition: mrcp_types.h:76
typedefAPT_BEGIN_EXTERN_C struct mrcp_resource_loader_t mrcp_resource_loader_t
Definition: mrcp_resource_loader.h:31
#define APT_BEGIN_EXTERN_C
Definition: apt.h:36
Basic MRCP Types.
apr_size_t mrcp_resource_id
Definition: mrcp_types.h:68
apt_bool_t mrcp_resource_load(mrcp_resource_loader_t *loader, const apt_str_t *name)
mrcp_resource_factory_t * mrcp_resource_factory_get(const mrcp_resource_loader_t *loader)
Definition: apt_string.h:36
String Representation.
apt_bool_t mrcp_resources_load(mrcp_resource_loader_t *loader)