forked from multipath-tcp/mptcpd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpath_manager.h
46 lines (37 loc) · 889 Bytes
/
path_manager.h
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
// SPDX-License-Identifier: BSD-3-Clause
/**
* @file src/path_manager.h
*
* @brief mptcpd user space path manager header file (internal).
*
* Copyright (c) 2017-2019, Intel Corporation
*/
#ifndef MPTCPD_PATH_MANAGER_H
#define MPTCPD_PATH_MANAGER_H
struct mptcpd_pm;
struct mptcpd_config;
/**
* @brief Create a path manager.
*
* @param[in] config Mptcpd configuration.
*
* @todo As currently implemented, one could create multiple path
* manager instances? Is that useful?
*
* @return Pointer to new path manager on success. @c NULL on
* failure.
*/
struct mptcpd_pm *
mptcpd_pm_create(struct mptcpd_config const *config);
/**
* Destroy a path manager.
*
* @param[in,out] pm Path manager to be destroyed.
*/
void mptcpd_pm_destroy(struct mptcpd_pm *pm);
#endif /* MPTCPD_PATH_MANAGER_H */
/*
Local Variables:
c-file-style: "linux"
End:
*/