package obus

  1. Overview
  2. Docs
Pure Ocaml implementation of the D-Bus protocol

Install

Dune Dependency

Authors

Maintainers

Sources

obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205

doc/obus.network_manager/Nm_manager/index.html

Module Nm_managerSource

NetworkManager main interface

include OBus_peer.Private
Sourcetype t = private OBus_peer.peer
Sourceval of_peer : OBus_peer.peer -> t
Sourceval to_peer : t -> OBus_peer.peer
Sourceval daemon : unit -> t Lwt.t

daemon () returns the peer object for the network manager daemon

Types
Sourcetype state = [
  1. | `Unknown
    (*

    The NetworkManager daemon is in an unknown state.

    *)
  2. | `Asleep
    (*

    The NetworkManager daemon is asleep and all interfaces managed by it are inactive.

    *)
  3. | `Connecting
    (*

    The NetworkManager daemon is connecting a device.

    *)
  4. | `Connected
    (*

    The NetworkManager daemon is connected.

    *)
  5. | `Disconnected
    (*

    The NetworkManager daemon is disconnected.

    *)
]

State of the daemon

Methods
Sourceval get_devices : t -> Nm_device.t list Lwt.t
Sourceval 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
Sourceval deactivate_connection : t -> active_connection:Nm_connection.t -> unit Lwt.t
Sourceval sleep : t -> sleep:bool -> unit Lwt.t
Signals
Sourceval state_changed : t -> state OBus_signal.t
Sourceval properties_changed : t -> (string * OBus_value.V.single) list OBus_signal.t
Sourceval device_added : t -> Nm_device.t OBus_signal.t
Sourceval device_removed : t -> Nm_device.t OBus_signal.t
Properties
Sourceval wireless_enabled : t -> bool OBus_property.rw
Sourceval wireless_hardware_enabled : t -> bool OBus_property.r
Sourceval wwan_enabled : t -> bool OBus_property.rw
Sourceval wwan_hardware_enabled : t -> bool OBus_property.r
Sourceval active_connections : t -> Nm_connection.t list OBus_property.r
Sourceval properties : t -> OBus_property.group
OCaml

Innovation. Community. Security.