package obus
A pure OCaml implementation of DBus
Install
Dune Dependency
Authors
Maintainers
Sources
1.1.8.tar.gz
sha256=84aa0003157b0299e43b20a4127b7af04a0fd99878d7ce540bbbfbc6157dfe4f
md5=976947861f1dfa3d3da68378f25377c1
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