package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.0.tar.gz
sha256=b8a0707f03d525a98c1c5a380b07074e52f2d26918c7b2ad90b5cc0f99a67f2d
md5=0896d5078bfd486a65cf9fa73a984b3f

doc/obus.upower/UPower/index.html

Module UPower

UPower 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
val daemon : unit -> t Lwt.t

daemon () returns the peer object for the upower daemon

val general_error : OBus_error.name
Methods
val hibernate_allowed : t -> bool Lwt.t
val hibernate : t -> unit Lwt.t
val suspend_allowed : t -> bool Lwt.t
val suspend : t -> unit Lwt.t
val about_to_sleep : t -> unit Lwt.t
val enumerate_devices : t -> UPower_device.t list Lwt.t
Signals
val resuming : t -> unit OBus_signal.t
val sleeping : t -> unit OBus_signal.t
val changed : t -> unit OBus_signal.t
val device_changed : t -> UPower_device.t OBus_signal.t
val device_removed : t -> UPower_device.t OBus_signal.t
val device_added : t -> UPower_device.t OBus_signal.t
Properties
val lid_is_present : t -> bool OBus_property.r
val lid_is_closed : t -> bool OBus_property.r
val on_low_battery : t -> bool OBus_property.r
val on_battery : t -> bool OBus_property.r
val can_hibernate : t -> bool OBus_property.r
val can_suspend : t -> bool OBus_property.r
val daemon_version : t -> string OBus_property.r
val properties : t -> OBus_property.group
OCaml

Innovation. Community. Security.