libnl 3.7.0
family.h
1/* SPDX-License-Identifier: LGPL-2.1-only */
2/*
3 * Copyright (c) 2003-2012 Thomas Graf <tgraf@suug.ch>
4 */
5
6#ifndef NETLINK_GENL_FAMILY_H_
7#define NETLINK_GENL_FAMILY_H_
8
9#include <netlink/netlink.h>
10#include <netlink/cache.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16struct genl_family;
17
18extern struct genl_family * genl_family_alloc(void);
19extern void genl_family_put(struct genl_family *);
20
21extern unsigned int genl_family_get_id(struct genl_family *);
22extern void genl_family_set_id(struct genl_family *, unsigned int);
23extern char * genl_family_get_name(struct genl_family *);
24extern void genl_family_set_name(struct genl_family *, const char *);
25extern uint8_t genl_family_get_version(struct genl_family *);
26extern void genl_family_set_version(struct genl_family *, uint8_t);
27extern uint32_t genl_family_get_hdrsize(struct genl_family *);
28extern void genl_family_set_hdrsize(struct genl_family *, uint32_t);
29extern uint32_t genl_family_get_maxattr(struct genl_family *);
30extern void genl_family_set_maxattr(struct genl_family *, uint32_t);
31
32extern int genl_family_add_op(struct genl_family *, int, int);
33extern int genl_family_add_grp(struct genl_family *, uint32_t ,
34 const char *);
35
36
37#ifdef __cplusplus
38}
39#endif
40
41#endif
void genl_family_set_name(struct genl_family *, const char *)
Set human readable name.
Definition: family.c:257
void genl_family_set_version(struct genl_family *, uint8_t)
Set interface version.
Definition: family.c:287
struct genl_family * genl_family_alloc(void)
Allocate new Generic Netlink family object.
Definition: family.c:180
void genl_family_put(struct genl_family *)
Release reference on Generic Netlink family object.
Definition: family.c:194
uint8_t genl_family_get_version(struct genl_family *)
Return interface version.
Definition: family.c:274
char * genl_family_get_name(struct genl_family *)
Return human readable name.
Definition: family.c:244
unsigned int genl_family_get_id(struct genl_family *)
Return numeric identifier.
Definition: family.c:212
uint32_t genl_family_get_hdrsize(struct genl_family *)
Return user header size expected by kernel component.
Definition: family.c:306
void genl_family_set_id(struct genl_family *, unsigned int)
Set the numeric identifier.
Definition: family.c:225