mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-18 01:20:50 +01:00
Add accessor for PPP manager
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3793 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
parent
5d1f4ce737
commit
2ed3b011d8
2 changed files with 11 additions and 0 deletions
|
|
@ -960,6 +960,14 @@ nm_serial_device_get_io_channel (NMSerialDevice *device)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
NMPPPManager *
|
||||
nm_serial_device_get_ppp_manager (NMSerialDevice *device)
|
||||
{
|
||||
g_return_val_if_fail (NM_IS_SERIAL_DEVICE (device), NULL);
|
||||
|
||||
return NM_SERIAL_DEVICE_GET_PRIVATE (device)->ppp_manager;
|
||||
}
|
||||
|
||||
static void
|
||||
ppp_state_changed (NMPPPManager *ppp_manager, NMPPPStatus status, gpointer user_data)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
#include <nm-device.h>
|
||||
#include <nm-setting-serial.h>
|
||||
#include "ppp-manager/nm-ppp-manager.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
|
@ -81,6 +82,8 @@ guint nm_serial_device_flash (NMSerialDevice *device,
|
|||
|
||||
GIOChannel *nm_serial_device_get_io_channel (NMSerialDevice *device);
|
||||
|
||||
NMPPPManager *nm_serial_device_get_ppp_manager (NMSerialDevice *device);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* NM_SERIAL_DEVICE_H */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue