UniMRCP
1.2.0
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
libs
apr-toolkit
include
apt_dir_layout.h
Go to the documentation of this file.
1
/*
2
* Copyright 2008-2014 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
* $Id: apt_dir_layout.h 2136 2014-07-04 06:33:36Z achaloyan@gmail.com $
17
*/
18
19
#ifndef APT_DIR_LAYOUT_H
20
#define APT_DIR_LAYOUT_H
21
22
/**
23
* @file apt_dir_layout.h
24
* @brief Directory Layout
25
*/
26
27
#include "
apt.h
"
28
29
APT_BEGIN_EXTERN_C
30
31
/** Directory layout declaration */
32
typedef
struct
apt_dir_layout_t
apt_dir_layout_t
;
33
34
/** Directory layout */
35
struct
apt_dir_layout_t
{
36
/** Path to config dir */
37
char
*
conf_dir_path
;
38
/** Path to plugin dir */
39
char
*
plugin_dir_path
;
40
/** Path to log dir */
41
char
*
log_dir_path
;
42
/** Path to data dir */
43
char
*
data_dir_path
;
44
};
45
46
/**
47
* Create (allocate) the structure of default directories layout.
48
*/
49
APT_DECLARE
(
apt_dir_layout_t
*)
apt_default_dir_layout_create
(const
char
*root_dir_path, apr_pool_t *pool);
50
51
/**
52
* Create (allocate) the structure of custom directories layout.
53
*/
54
APT_DECLARE
(
apt_dir_layout_t
*)
apt_custom_dir_layout_create
(
55
const
char
*conf_dir_path,
56
const
char
*plugin_dir_path,
57
const
char
*log_dir_path,
58
const
char
*data_dir_path,
59
apr_pool_t *pool);
60
61
/** Construct file path relative to data dir using the file name specified. */
62
APT_DECLARE
(
char
*)
apt_datadir_filepath_get
(const
apt_dir_layout_t
*dir_layout, const
char
*file_name, apr_pool_t *pool);
63
64
/** Construct file path relative to conf dir using the file name specified. */
65
APT_DECLARE
(
char
*)
apt_confdir_filepath_get
(const
apt_dir_layout_t
*dir_layout, const
char
*file_name, apr_pool_t *pool);
66
67
68
APT_END_EXTERN_C
69
70
#endif
/* APT_DIR_LAYOUT_H */
Generated on Sun Jul 6 2014 22:12:45 for UniMRCP by
1.8.3.1