00001 /* 00002 * Copyright 2008-2010 Arsen Chaloyan 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 * 00016 * $Id: mrcp_resource_loader.h 1710 2010-05-24 17:36:19Z achaloyan $ 00017 */ 00018 00019 #ifndef MRCP_RESOURCE_LOADER_H 00020 #define MRCP_RESOURCE_LOADER_H 00021 00022 /** 00023 * @file mrcp_resource_loader.h 00024 * @brief MRCP Resource Loader 00025 */ 00026 00027 #include "apt_string.h" 00028 #include "mrcp_types.h" 00029 00030 APT_BEGIN_EXTERN_C 00031 00032 /** Opaque resource loader declaration */ 00033 typedef struct mrcp_resource_loader_t mrcp_resource_loader_t; 00034 00035 00036 /** Create MRCP resource loader */ 00037 MRCP_DECLARE(mrcp_resource_loader_t*) mrcp_resource_loader_create(apt_bool_t load_all_resources, apr_pool_t *pool); 00038 00039 /** Load all MRCP resources */ 00040 MRCP_DECLARE(apt_bool_t) mrcp_resources_load(mrcp_resource_loader_t *loader); 00041 00042 /** Load MRCP resource by resource name */ 00043 MRCP_DECLARE(apt_bool_t) mrcp_resource_load(mrcp_resource_loader_t *loader, const apt_str_t *name); 00044 00045 /** Load MRCP resource by resource identifier */ 00046 MRCP_DECLARE(apt_bool_t) mrcp_resource_load_by_id(mrcp_resource_loader_t *loader, mrcp_resource_id id); 00047 00048 /** Get MRCP resource factory */ 00049 MRCP_DECLARE(mrcp_resource_factory_t*) mrcp_resource_factory_get(const mrcp_resource_loader_t *loader); 00050 00051 APT_END_EXTERN_C 00052 00053 #endif /* MRCP_RESOURCE_LOADER_H */