Permalink
Newer
Older
100644 18 lines (13 sloc) 457 Bytes
1
2
#ifndef __ID_NAME_H__
3
#define __ID_NAME_H__ 1
4
5
typedef struct IdName_ {
6
int id;
7
const char *name;
8
} IdName;
9
Jun 10, 2011
10
const char *idn_find_name_from_id(const IdName *scanned, const int id);
11
int idn_find_id_from_name(const IdName *scanned, int * const id,
12
const char * const name, const size_t name_len);
Jun 10, 2011
13
const IdName *idn_get_pf_domains(void);
14
const IdName *idn_get_sock_types(void);
15
const IdName *idn_get_ip_protos(void);
16
17
#endif