summary refs log tree commit diff
path: root/src/core/ppp/nm-ppp-manager-call.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2022-02-14 19:23:28 +0100
committerMichael Biebl <biebl@debian.org>2022-02-14 19:23:28 +0100
commit2f94dba7385fd0e0ef19a06eb4a2fcf6c43d7946 (patch)
treee2222f5577115985dd52044d2991253403cdd952 /src/core/ppp/nm-ppp-manager-call.c
parent88c227d90a6b7b388c5c85d72802a0ca8f05ed5c (diff)
New upstream version 1.35.91 upstream/1.35.91
Diffstat (limited to 'src/core/ppp/nm-ppp-manager-call.c')
-rw-r--r--src/core/ppp/nm-ppp-manager-call.c32
1 files changed, 7 insertions, 25 deletions
diff --git a/src/core/ppp/nm-ppp-manager-call.c b/src/core/ppp/nm-ppp-manager-call.c
index 5e84f596..8c788fad 100644
--- a/src/core/ppp/nm-ppp-manager-call.c
+++ b/src/core/ppp/nm-ppp-manager-call.c
@@ -25,9 +25,9 @@ static const NMPPPOps *_ppp_ops = NULL;
 NMPPPManager *
 nm_ppp_manager_create(const char *iface, GError **error)
 {
-    NMPPPManager *  ret;
-    GModule *       plugin;
-    GError *        error_local = NULL;
+    NMPPPManager   *ret;
+    GModule        *plugin;
+    GError         *error_local = NULL;
     struct stat     st;
     const NMPPPOps *ppp_ops;
 
@@ -94,31 +94,13 @@ again:
     return ret;
 }
 
-void
-nm_ppp_manager_set_route_parameters(NMPPPManager *self,
-                                    guint32       ip4_route_table,
-                                    guint32       ip4_route_metric,
-                                    guint32       ip6_route_table,
-                                    guint32       ip6_route_metric)
-{
-    const NMPPPOps *ppp_ops = ppp_ops_get();
-
-    g_return_if_fail(ppp_ops);
-
-    ppp_ops->set_route_parameters(self,
-                                  ip4_route_table,
-                                  ip4_route_metric,
-                                  ip6_route_table,
-                                  ip6_route_metric);
-}
-
 gboolean
 nm_ppp_manager_start(NMPPPManager *self,
                      NMActRequest *req,
-                     const char *  ppp_name,
+                     const char   *ppp_name,
                      guint32       timeout_secs,
                      guint         baud_override,
-                     GError **     err)
+                     GError      **err)
 {
     const NMPPPOps *ppp_ops = ppp_ops_get();
 
@@ -128,8 +110,8 @@ nm_ppp_manager_start(NMPPPManager *self,
 }
 
 NMPPPManagerStopHandle *
-nm_ppp_manager_stop(NMPPPManager *           self,
-                    GCancellable *           cancellable,
+nm_ppp_manager_stop(NMPPPManager            *self,
+                    GCancellable            *cancellable,
                     NMPPPManagerStopCallback callback,
                     gpointer                 user_data)
 {