The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
dependency.h
Go to the documentation of this file.
1 #pragma once
2 /*
3  * This program is free software; you can redistribute it and/or modify
4  * it under the terms of the GNU General Public License as published by
5  * the Free Software Foundation; either version 2 of the License, or
6  * (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16  */
17 
18 /**
19  * $Id: f0601287744559918df67a158d9a095c234d5127 $
20  *
21  * @file lib/server/dependency.h
22  * @brief Version checking functions
23  *
24  * @copyright 2017 The FreeRADIUS server project
25  */
26 RCSIDH(dependency_h, "$Id: f0601287744559918df67a158d9a095c234d5127 $")
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 extern char const *radiusd_version;
33 extern char const *radiusd_version_short;
34 
35 #include <freeradius-devel/server/cf_util.h>
36 
37 #include <stddef.h>
38 
39 #define RADIUSD_VERSION_STRING STRINGIFY(RADIUSD_VERSION_MAJOR) "." STRINGIFY(RADIUSD_VERSION_MINOR) "." STRINGIFY(RADIUSD_VERSION_INCRM)
40 
41 int rad_check_lib_magic(uint64_t magic);
42 int dependency_feature_add(CONF_SECTION *cs, char const *name, bool enabled);
43 int dependency_version_number_add(CONF_SECTION *cs, char const *name, char const *version);
46 void dependency_version_print(void);
47 
48 #ifdef __cplusplus
49 }
50 #endif
#define RCSIDH(h, id)
Definition: build.h:445
A section grouping multiple CONF_PAIR.
Definition: cf_priv.h:89
void dependency_version_print(void)
Definition: dependency.c:369
void dependency_features_init(CONF_SECTION *cs)
Initialise core feature flags.
Definition: dependency.c:177
int rad_check_lib_magic(uint64_t magic)
Check if the application linking to the library has the correct magic number.
Definition: dependency.c:64
char const * radiusd_version_short
Definition: dependency.c:33
char const * radiusd_version
Definition: radiusd.c:83
void dependency_version_numbers_init(CONF_SECTION *cs)
Initialise core version flags.
Definition: dependency.c:335
int dependency_feature_add(CONF_SECTION *cs, char const *name, bool enabled)
Add a feature flag to the main configuration.
Definition: dependency.c:107
int dependency_version_number_add(CONF_SECTION *cs, char const *name, char const *version)
Add a library/server version pair to the main configuration.
Definition: dependency.c:146
static char const * name
int nonnull(2, 5))