blob: 00a98e2c0c844dded354f645c91aae460ac3758e (
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
26
27
28
29
30
31
32
33
34
35
36
37
|
// SPDX-License-Identifier: GPL-2.0+
/* NetworkManager -- Network link manager
*
* Copyright (C) 2016 Red Hat, Inc.
*/
#ifndef __NM_PPP_PLUGIN_API_H__
#define __NM_PPP_PLUGIN_API_H__
#include "nm-ppp-manager.h"
typedef const struct {
NMPPPManager *(*create) (const char *iface);
void (*set_route_parameters) (NMPPPManager *manager,
guint32 route_table_v4,
guint32 route_metric_v4,
guint32 route_table_v6,
guint32 route_metric_v6);
gboolean (*start) (NMPPPManager *manager,
NMActRequest *req,
const char *ppp_name,
guint32 timeout_secs,
guint baud_override,
GError **err);
NMPPPManagerStopHandle *(*stop) (NMPPPManager *manager,
GCancellable *cancellable,
NMPPPManagerStopCallback callback,
gpointer user_data);
void (*stop_cancel) (NMPPPManagerStopHandle *handle);
} NMPPPOps;
#endif /* __NM_PPP_PLUGIN_API_H__ */
|