mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-03-05 07:40:34 +01:00
Our coding style recommends C style comments (/* */) instead of C++ (//). Also, systemd (which we partly fork) uses C style comments for the SPDX-License-Identifier. Unify the style. $ sed -i '1 s#// SPDX-License-Identifier: \([^ ]\+\)$#/* SPDX-License-Identifier: \1 */#' -- $(git ls-files -- '*.[hc]' '*.[hc]pp')
36 lines
1.2 KiB
C
36 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* 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__ */
|