blob: 72a4a3929244daf325a654e6bf370996d68321c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* strset.h - string set handling
*
* Interface for local cache of ethtool string sets.
*/
#ifndef ETHTOOL_NETLINK_STRSET_H__
#define ETHTOOL_NETLINK_STRSET_H__
struct nl_socket;
struct stringset;
const struct stringset *global_stringset(unsigned int type,
struct nl_socket *nlsk);
const struct stringset *perdev_stringset(const char *dev, unsigned int type,
struct nl_socket *nlsk);
unsigned int get_count(const struct stringset *set);
const char *get_string(const struct stringset *set, unsigned int idx);
int preload_global_strings(struct nl_socket *nlsk);
int preload_perdev_strings(struct nl_socket *nlsk, const char *dev);
void cleanup_all_strings(void);
#endif /* ETHTOOL_NETLINK_STRSET_H__ */
|