Rev 2873 | Rev 2880 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2873 | Rev 2878 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | */ |
5 | */ |
6 | 6 | ||
7 | #ifndef PROTO_H_ |
7 | #ifndef PROTO_H_ |
8 | #define PROTO_H_ |
8 | #define PROTO_H_ |
9 | 9 | ||
- | 10 | #include <libadt/hash_table.h> |
|
- | 11 | ||
10 | typedef struct { |
12 | typedef struct { |
11 | char *name; |
13 | char *name; |
12 | } proto_t; |
14 | } proto_t; |
13 | 15 | ||
- | 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 | ||
14 | #endif |
25 | #endif |
15 | 26 | ||
16 | /** @} |
27 | /** @} |
17 | */ |
28 | */ |