Tizen 2.1 base
[platform/upstream/libnl2.git] / include / netlink / genl / family.h
1 /*
2  * netlink/genl/family.h        Generic Netlink Family
3  *
4  *      This library is free software; you can redistribute it and/or
5  *      modify it under the terms of the GNU Lesser General Public
6  *      License as published by the Free Software Foundation version 2.1
7  *      of the License.
8  *
9  * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
10  */
11
12 #ifndef NETLINK_GENL_FAMILY_H_
13 #define NETLINK_GENL_FAMILY_H_
14
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22 struct genl_family;
23
24 extern struct genl_family *     genl_family_alloc(void);
25 extern void                     genl_family_put(struct genl_family *);
26
27 extern unsigned int             genl_family_get_id(struct genl_family *);
28 extern void                     genl_family_set_id(struct genl_family *,
29                                                    unsigned int);
30 extern char *                   genl_family_get_name(struct genl_family *);
31 extern void                     genl_family_set_name(struct genl_family *,
32                                                      const char *name);
33 extern uint8_t                  genl_family_get_version(struct genl_family *);
34 extern void                     genl_family_set_version(struct genl_family *,
35                                                         uint8_t);
36 extern uint32_t                 genl_family_get_hdrsize(struct genl_family *);
37 extern void                     genl_family_set_hdrsize(struct genl_family *,
38                                                         uint32_t);
39 extern uint32_t                 genl_family_get_maxattr(struct genl_family *);
40 extern void                     genl_family_set_maxattr(struct genl_family *,
41                                                         uint32_t);
42
43 extern int                      genl_family_add_op(struct genl_family *,
44                                                    int, int);
45 extern int                      genl_family_add_grp(struct genl_family *,
46                                         uint32_t , const char *);
47
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif