package obus
Pure Ocaml implementation of the D-Bus protocol
Install
Dune Dependency
Authors
Maintainers
Sources
1.2.2.tar.gz
sha256=3bf0aeb00bf90cd4111483b37cefcb39af38ad6db1aeb6949a2fbecc13ff9a90
md5=7dd48f9bde3e069898fa08e9972596b5
doc/obus.network_manager/Nm_manager/index.html
Module Nm_manager
NetworkManager main interface
include OBus_peer.Private
type t = private OBus_peer.peer
val of_peer : OBus_peer.peer -> t
val to_peer : t -> OBus_peer.peer
Types
type state = [
| `Unknown
(*The NetworkManager daemon is in an unknown state.
*)| `Asleep
(*The NetworkManager daemon is asleep and all interfaces managed by it are inactive.
*)| `Connecting
(*The NetworkManager daemon is connecting a device.
*)| `Connected
(*The NetworkManager daemon is connected.
*)| `Disconnected
(*The NetworkManager daemon is disconnected.
*)
]
State of the daemon
Methods
val get_devices : t -> Nm_device.t list Lwt.t
val activate_connection :
t ->
service_name:OBus_name.bus ->
connection:Nm_settings.Connection.t ->
device:Nm_device.t ->
specific_object:OBus_proxy.t ->
Nm_connection.t Lwt.t
val deactivate_connection :
t ->
active_connection:Nm_connection.t ->
unit Lwt.t
Signals
val state_changed : t -> state OBus_signal.t
val properties_changed : t -> (string * OBus_value.V.single) list OBus_signal.t
val device_added : t -> Nm_device.t OBus_signal.t
val device_removed : t -> Nm_device.t OBus_signal.t
Properties
val wireless_enabled : t -> bool OBus_property.rw
val wireless_hardware_enabled : t -> bool OBus_property.r
val wwan_enabled : t -> bool OBus_property.rw
val wwan_hardware_enabled : t -> bool OBus_property.r
val active_connections : t -> Nm_connection.t list OBus_property.r
val state : t -> state OBus_property.r
val properties : t -> OBus_property.group
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page