package obus

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

Install

Dune Dependency

Authors

Maintainers

Sources

obus-1.2.5.tar.gz
md5=81eb1034c6ef4421a2368a9b352199de
sha512=4b540497188a7d78f4f14f94c6b7fdff47dd06436a34e650ff378dd77bb3e2acb7afd45cd72daf4ddba06e732e9944d560c2882dc37862f1b1f1bb6df37e6205

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.