Statistics
| Branch: | Revision:

iof-bird-daemon / sysdep / config.h @ 2d176ac5

History | View | Annotate | Download (1.03 KB)

1
/*
2
 *        This file contains all parameters dependent on the
3
 *        operating system and build-time configuration.
4
 */
5

    
6
#ifndef _BIRD_CONFIG_H_
7
#define _BIRD_CONFIG_H_
8

    
9
/* BIRD version */
10
#define BIRD_VERSION "1.0.0"
11

    
12
/* Include parameters determined by configure script */
13
#include "sysdep/autoconf.h"
14

    
15
/* Include OS configuration file as chosen in autoconf.h */
16
#include SYSCONF_INCLUDE
17

    
18
#ifndef MACROS_ONLY
19

    
20
/*
21
 *  Of course we could add the paths to autoconf.h, but autoconf
22
 *  is stupid and puts make-specific substitutious to the paths.
23
 */
24
#include "sysdep/paths.h"
25

    
26
/* Types */
27
typedef signed INTEGER_8 s8;
28
typedef unsigned INTEGER_8 u8;
29
typedef INTEGER_16 s16;
30
typedef unsigned INTEGER_16 u16;
31
typedef INTEGER_32 s32;
32
typedef unsigned INTEGER_32 u32;
33
typedef u8 byte;
34
typedef u16 word;
35

    
36
#endif
37

    
38
/* Path to configuration file */
39
#ifdef DEBUGGING
40
#define PATH_CONFIG "bird.conf"
41
#define PATH_CONTROL_SOCKET "bird.ctl"
42
#else
43
#define PATH_CONFIG PATH_CONFIG_DIR "/bird.conf"
44
#define PATH_CONTROL_SOCKET PATH_CONTROL_SOCKET_DIR "/bird.ctl"
45
#endif
46

    
47
#endif