File: strset.h

package info (click to toggle)
ethtool 1%3A6.15-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,996 kB
  • sloc: ansic: 66,004; sh: 97; makefile: 88; xml: 17
file content (25 lines) | stat: -rw-r--r-- 725 bytes parent folder | download | duplicates (4)
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__ */