Rev 2873 | Rev 2880 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2873 | svoboda | 1 | /** @addtogroup sctrace |
2 | * @{ |
||
3 | */ |
||
4 | /** @file |
||
5 | */ |
||
6 | |||
7 | #ifndef PROTO_H_ |
||
8 | #define PROTO_H_ |
||
9 | |||
2878 | svoboda | 10 | #include <libadt/hash_table.h> |
11 | |||
2873 | svoboda | 12 | typedef struct { |
13 | char *name; |
||
14 | } proto_t; |
||
15 | |||
2878 | svoboda | 16 | /* Maps service number to protocol */ |
17 | extern hash_table_t srv_proto; |
||
18 | |||
19 | void proto_init(void); |
||
20 | void proto_cleanup(void); |
||
21 | void proto_register(int srv, proto_t *proto); |
||
22 | proto_t *proto_get_by_srv(int srv); |
||
23 | |||
24 | |||
2873 | svoboda | 25 | #endif |
26 | |||
27 | /** @} |
||
28 | */ |