UniMRCP
1.5.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
mrcp
control
include
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
28
APT_BEGIN_EXTERN_C
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 */
34
MRCP_DECLARE
(
apt_bool_t
)
mrcp_resource_factory_destroy
(
mrcp_resource_factory_t
*resource_factory);
35
36
/** Register MRCP resource */
37
MRCP_DECLARE
(
apt_bool_t
)
mrcp_resource_register
(
mrcp_resource_factory_t
*resource_factory,
mrcp_resource_t
*resource);
38
39
/** Get MRCP resource by resource id */
40
MRCP_DECLARE
(
mrcp_resource_t
*)
mrcp_resource_get
(const
mrcp_resource_factory_t
*resource_factory,
mrcp_resource_id
resource_id);
41
42
/** Find MRCP resource by resource name */
43
MRCP_DECLARE
(
mrcp_resource_t
*)
mrcp_resource_find
(const
mrcp_resource_factory_t
*resource_factory, const
apt_str_t
*name);
44
45
46
APT_END_EXTERN_C
47
48
#endif
/* MRCP_RESOURCE_FACTORY_H */
MRCP_DECLARE
#define MRCP_DECLARE(type)
Definition:
mrcp.h:40
mrcp_resource_find
mrcp_resource_t * mrcp_resource_find(const mrcp_resource_factory_t *resource_factory, const apt_str_t *name)
APT_END_EXTERN_C
#define APT_END_EXTERN_C
Definition:
apt.h:38
apt_bool_t
int apt_bool_t
Definition:
apt.h:57
mrcp_resource_factory_destroy
apt_bool_t mrcp_resource_factory_destroy(mrcp_resource_factory_t *resource_factory)
mrcp_resource_factory_t
struct mrcp_resource_factory_t mrcp_resource_factory_t
Definition:
mrcp_types.h:76
APT_BEGIN_EXTERN_C
#define APT_BEGIN_EXTERN_C
Definition:
apt.h:36
mrcp_types.h
Basic MRCP Types.
mrcp_resource_factory_create
APT_BEGIN_EXTERN_C mrcp_resource_factory_t * mrcp_resource_factory_create(apr_size_t resource_count, apr_pool_t *pool)
mrcp_resource_id
apr_size_t mrcp_resource_id
Definition:
mrcp_types.h:68
mrcp_resource_register
apt_bool_t mrcp_resource_register(mrcp_resource_factory_t *resource_factory, mrcp_resource_t *resource)
apt_str_t
Definition:
apt_string.h:36
mrcp_resource_t
Definition:
mrcp_resource.h:32
mrcp_resource_get
mrcp_resource_t * mrcp_resource_get(const mrcp_resource_factory_t *resource_factory, mrcp_resource_id resource_id)
apt_text_stream.h
Text Stream Parse/Generate Routine.
Generated on Tue Aug 22 2017 10:11:48 for UniMRCP by
1.8.6