mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 17:48:07 +02:00
libnm-glib/build: make WiMAX support optional
This commit is contained in:
parent
a6de5792d1
commit
ec4d126d5a
1 changed files with 6 additions and 0 deletions
|
|
@ -219,6 +219,7 @@ update_wwan_status (NMClient *client, gboolean notify)
|
|||
}
|
||||
}
|
||||
|
||||
#if WITH_WIMAX
|
||||
static void
|
||||
update_wimax_status (NMClient *client, gboolean notify)
|
||||
{
|
||||
|
|
@ -248,6 +249,7 @@ update_wimax_status (NMClient *client, gboolean notify)
|
|||
_nm_object_queue_notify (NM_OBJECT (client), NM_CLIENT_WIMAX_ENABLED);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static GObject *
|
||||
new_active_connection (DBusGConnection *connection, const char *path)
|
||||
|
|
@ -548,7 +550,9 @@ constructor (GType type,
|
|||
if (priv->manager_running) {
|
||||
update_wireless_status (NM_CLIENT (object), FALSE);
|
||||
update_wwan_status (NM_CLIENT (object), FALSE);
|
||||
#if WITH_WIMAX
|
||||
update_wimax_status (NM_CLIENT (object), FALSE);
|
||||
#endif
|
||||
nm_client_get_state (NM_CLIENT (object));
|
||||
}
|
||||
|
||||
|
|
@ -966,7 +970,9 @@ proxy_name_owner_changed (DBusGProxy *proxy,
|
|||
_nm_object_queue_notify (NM_OBJECT (client), NM_CLIENT_MANAGER_RUNNING);
|
||||
update_wireless_status (client, TRUE);
|
||||
update_wwan_status (client, TRUE);
|
||||
#if WITH_WIMAX
|
||||
update_wimax_status (client, TRUE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue