package obus

  1. Overview
  2. Docs
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_wakeups/index.html

Module UPower_wakeups

UPower wakeups interface

Types
type data = {
  1. data_is_userspace : bool;
    (*

    If the wakeup is from userspace ?

    *)
  2. data_id : int;
    (*

    The process ID of the application, or the IRQ for kernel drivers.

    *)
  3. data_value : float;
    (*

    The number of wakeups per second.

    *)
  4. data_cmdline : string option;
    (*

    The command line for the application, or None for kernel drivers.

    *)
  5. data_details : string;
    (*

    The details about the wakeup.

    *)
}

The data of all the processes and drivers which contribute to the wakeups on the system.

Methods
val get_data : UPower.t -> data list Lwt.t
val get_total : UPower.t -> int Lwt.t
Signals
val data_changed : UPower.t -> unit OBus_signal.t
val total_changed : UPower.t -> int OBus_signal.t
Properties
val has_capability : UPower.t -> bool OBus_property.r
OCaml

Innovation. Community. Security.