2 * netlink/genl/family.h Generic Netlink Family
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
9 * Copyright (c) 2003-2006 Thomas Graf <tgraf@suug.ch>
12 #ifndef NETLINK_GENL_FAMILY_H_
13 #define NETLINK_GENL_FAMILY_H_
15 #include <netlink/netlink.h>
16 #include <netlink/cache.h>
24 extern struct genl_family * genl_family_alloc(void);
25 extern void genl_family_put(struct genl_family *);
27 extern unsigned int genl_family_get_id(struct genl_family *);
28 extern void genl_family_set_id(struct genl_family *,
30 extern char * genl_family_get_name(struct genl_family *);
31 extern void genl_family_set_name(struct genl_family *,
33 extern uint8_t genl_family_get_version(struct genl_family *);
34 extern void genl_family_set_version(struct genl_family *,
36 extern uint32_t genl_family_get_hdrsize(struct genl_family *);
37 extern void genl_family_set_hdrsize(struct genl_family *,
39 extern uint32_t genl_family_get_maxattr(struct genl_family *);
40 extern void genl_family_set_maxattr(struct genl_family *,
43 extern int genl_family_add_op(struct genl_family *,
45 extern int genl_family_add_grp(struct genl_family *,
46 uint32_t , const char *);