package obus
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_policy/index.html
Module UPower_policy
Quality of service policy
Types
type latency_request = {
lr_uid : int;
(*The user ID that issued the request.
*)lr_pid : int;
(*The process ID of the application.
*)lr_exec : string;
(*The executable that issued the request.
*)lr_timespec : int64;
(*The number of seconds since the epoch.
*)lr_persistent : bool;
(*If the request is persistent and outlives the connection lifetime.
*)lr_typ : latency;
(*The type of the request.
*)lr_reserved : string;
lr_value : int;
(*The value, in microseconds or kilobits per second.
*)
}
Methods
val get_latency_requests : UPower.t -> latency_request list Lwt.t
Signals
val requests_changed : UPower.t -> unit OBus_signal.t
val latency_changed : UPower.t -> (latency * int) OBus_signal.t