]> git.ipfire.org Git - thirdparty/bird.git/blob - sysdep/bsd/krt-sys.h
Makes krt.c much more readable.
[thirdparty/bird.git] / sysdep / bsd / krt-sys.h
1 /*
2 * BIRD -- *BSD Kernel Route Syncer
3 *
4 * (c) 2004 Ondrej Filip <feela@network.cz>
5 *
6 * Can be freely distributed and used under the terms of the GNU GPL.
7 */
8
9 #ifndef _BIRD_KRT_SYS_H_
10 #define _BIRD_KRT_SYS_H_
11
12
13 /* Kernel interfaces */
14
15 struct kif_params {
16 };
17
18 struct kif_state {
19 };
20
21
22 static inline void kif_sys_init(struct kif_proto *p UNUSED) { }
23 static inline int kif_sys_reconfigure(struct kif_proto *p UNUSED, struct kif_config *n UNUSED, struct kif_config *o UNUSED) { return 1; }
24
25 static inline void kif_sys_preconfig(struct config *c UNUSED) { }
26 static inline void kif_sys_postconfig(struct kif_config *c UNUSED) { }
27 static inline void kif_sys_init_config(struct kif_config *c UNUSED) { }
28 static inline void kif_sys_copy_config(struct kif_config *d UNUSED, struct kif_config *s UNUSED) { }
29
30
31 /* Kernel routes */
32
33 struct krt_params {
34 };
35
36 struct krt_state {
37 };
38
39
40 static inline void krt_sys_init(struct krt_proto *p UNUSED) { }
41 static inline int krt_sys_reconfigure(struct krt_proto *p UNUSED, struct krt_config *n UNUSED, struct krt_config *o UNUSED) { return 1; }
42
43 static inline void krt_sys_preconfig(struct config *c UNUSED) { }
44 static inline void krt_sys_postconfig(struct krt_config *c UNUSED) { }
45 static inline void krt_sys_init_config(struct krt_config *c UNUSED) { }
46 static inline void krt_sys_copy_config(struct krt_config *d UNUSED, struct krt_config *s UNUSED) { }
47
48
49 #endif