package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

1.2.3.tar.gz
sha256=75703f78015e15d03d0fdba1633a155875daf17d854225658429e72a0df06258
md5=3090a796f0af95e16838d81656ac4b97

doc/obus.upower/UPower_wakeups/index.html

Module UPower_wakeupsSource

UPower wakeups interface

Types
Sourcetype 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
Sourceval get_data : UPower.t -> data list Lwt.t
Sourceval get_total : UPower.t -> int Lwt.t
Signals
Sourceval data_changed : UPower.t -> unit OBus_signal.t
Sourceval total_changed : UPower.t -> int OBus_signal.t
Properties
Sourceval has_capability : UPower.t -> bool OBus_property.r
OCaml

Innovation. Community. Security.