This file is indexed.

/usr/include/teamdctl.h is in libteam-dev 1.12-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
 *   teamdctl.h - Teamd daemon control library
 *   Copyright (C) 2013 Jiri Pirko <jiri@resnulli.us>
 *
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *   Lesser General Public License for more details.
 *
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, write to the Free Software
 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _TEAMDCTL_H_
#define _TEAMDCTL_H_

#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

/*
 * teamdctl
 *
 * library user context
 */
struct teamdctl;

struct teamdctl *teamdctl_alloc(void);
void teamdctl_free(struct teamdctl *tdc);
void teamdctl_set_log_fn(struct teamdctl *tdc,
			 void (*log_fn)(struct teamdctl *tdc, int priority,
					const char *file, int line,
					const char *fn, const char *format,
					va_list args));
int teamdctl_get_log_priority(struct teamdctl *tdc);
void teamdctl_set_log_priority(struct teamdctl *tdc, int priority);
int teamdctl_connect(struct teamdctl *tdc, const char *team_name,
		     const char *addr, const char *cli_type);
void teamdctl_disconnect(struct teamdctl *tdc);
int teamdctl_refresh(struct teamdctl *tdc);
int teamdctl_port_add(struct teamdctl *tdc, const char *port_devname);
int teamdctl_port_remove(struct teamdctl *tdc, const char *port_devname);
int teamdctl_port_config_update_raw(struct teamdctl *tdc,
				    const char *port_devname,
				    const char *port_config_raw);
int teamdctl_port_config_get_raw_direct(struct teamdctl *tdc,
					const char *port_devname,
					char **p_cfg);
char *teamdctl_config_get_raw(struct teamdctl *tdc);
int teamdctl_config_get_raw_direct(struct teamdctl *tdc, char **p_cfg);
char *teamdctl_config_actual_get_raw(struct teamdctl *tdc);
int teamdctl_config_actual_get_raw_direct(struct teamdctl *tdc, char **p_cfg);
char *teamdctl_state_get_raw(struct teamdctl *tdc);
int teamdctl_state_get_raw_direct(struct teamdctl *tdc, char **p_cfg);
int teamdctl_state_item_value_get(struct teamdctl *tdc, const char *item_path,
				  char **p_value);
int teamdctl_state_item_value_set(struct teamdctl *tdc, const char *item_path,
				  const char *value);

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif /* _TEAMDCTL_H_ */