/src/freeradius-server/src/lib/util/paths.c
Line | Count | Source |
1 | | /* |
2 | | * This library is free software; you can redistribute it and/or |
3 | | * modify it under the terms of the GNU Lesser General Public |
4 | | * License as published by the Free Software Foundation; either |
5 | | * version 2.1 of the License, or (at your option) any later version. |
6 | | * |
7 | | * This library is distributed in the hope that it will be useful, |
8 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
9 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10 | | * Lesser General Public License for more details. |
11 | | * |
12 | | * You should have received a copy of the GNU Lesser General Public |
13 | | * License along with this library; if not, write to the Free Software |
14 | | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA |
15 | | */ |
16 | | |
17 | | /** Default paths |
18 | | * |
19 | | * @file src/lib/util/paths.c |
20 | | * |
21 | | * @copyright 2020 The FreeRADIUS server project |
22 | | */ |
23 | | RCSID("$Id: 92a343375561058251a555adab8b805b10bf68a5 $") |
24 | | |
25 | | #include <freeradius-devel/util/conf.h> |
26 | | #include <freeradius-devel/util/paths.h> |
27 | | |
28 | | /** Return the default log dir |
29 | | * |
30 | | * This is set at build time from --prefix |
31 | | * @return the value of LOGDIR |
32 | | */ |
33 | | char const *fr_path_default_log_dir(void) |
34 | 0 | { |
35 | 0 | return LOGDIR; |
36 | 0 | } |
37 | | |
38 | | /** Return the default lib dir |
39 | | * |
40 | | * This is set at build time from --prefix |
41 | | * @return the value of LIBDIR |
42 | | */ |
43 | | char const *fr_path_default_lib_dir(void) |
44 | 45 | { |
45 | 45 | return LIBDIR; |
46 | 45 | } |
47 | | |
48 | | /** Return the default raddb dir |
49 | | * |
50 | | * This is set at build time from --prefix |
51 | | * @return the value of RADDBDIR |
52 | | */ |
53 | | char const *fr_path_default_raddb_dir(void) |
54 | 0 | { |
55 | 0 | return RADDBDIR; |
56 | 0 | } |
57 | | |
58 | | /** Return the default run dir |
59 | | * |
60 | | * This is set at build time from --prefix |
61 | | * @return the value of RUNDIR |
62 | | */ |
63 | | char const *fr_path_default_run_dir(void) |
64 | 0 | { |
65 | 0 | return RUNDIR; |
66 | 0 | } |
67 | | |
68 | | /** Return the default sbin dir |
69 | | * |
70 | | * This is set at build time from --prefix |
71 | | * @return the value of SBINDIR |
72 | | */ |
73 | | char const *fr_path_default_sbin_dir(void) |
74 | 0 | { |
75 | 0 | return SBINDIR; |
76 | 0 | } |
77 | | |
78 | | /** Return the default radacct dir |
79 | | * |
80 | | * This is set at build time from --prefix |
81 | | * @return the value of RADIR |
82 | | */ |
83 | | char const *fr_path_default_radacct_dir(void) |
84 | 0 | { |
85 | 0 | return RADIR; |
86 | 0 | } |