package obus

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Hal_deviceSource

Hal devices

include OBus_proxy.Private
Sourcetype t = private OBus_proxy.proxy
Sourceval of_proxy : OBus_proxy.proxy -> t
Sourceval to_proxy : t -> OBus_proxy.proxy

Unique Device Identifier

Sourceval udi : t -> udi

Return the udi of a device

Sourceval computer : unit -> t Lwt.t

The computer device

Sourcetype property =
  1. | Pstring of string
    (*

    An UTF8 string

    *)
  2. | Pstrlist of string list
    (*

    List of UTF8 strings

    *)
  3. | Pint of int32
    (*

    32-bit signed integer

    *)
  4. | Puint64 of int64
    (*

    64-bit unsigned integer

    *)
  5. | Pbool of bool
  6. | Pdouble of float
    (*

    IEEE754 double precision floating point number

    *)
Sourceval property_of_variant : OBus_value.V.single -> property

Tries to convert the given variant into a property

Sourceval variant_of_property : property -> OBus_value.V.single

Converts the gievn property into a D-Bus variant

Common device interface
Sourceval get_all_properties : t -> (string * property) list Lwt.t
Sourceval set_multiple_properties : t -> (string * property) list -> unit Lwt.t
Sourceval get_property : t -> string -> property Lwt.t
Sourceval get_property_string : t -> string -> string Lwt.t
Sourceval get_property_string_list : t -> string -> string list Lwt.t
Sourceval get_property_integer : t -> string -> int Lwt.t
Sourceval get_property_boolean : t -> string -> bool Lwt.t
Sourceval get_property_double : t -> string -> float Lwt.t
Sourceval set_property : t -> string -> property -> unit Lwt.t
Sourceval set_property_string : t -> string -> string -> unit Lwt.t
Sourceval set_property_string_list : t -> string -> string list -> unit Lwt.t
Sourceval set_property_integer : t -> string -> int -> unit Lwt.t
Sourceval set_property_boolean : t -> string -> bool -> unit Lwt.t
Sourceval set_property_double : t -> string -> float -> unit Lwt.t
Sourceval remove_property : t -> string -> unit Lwt.t
Sourceval get_property_type : t -> string -> int Lwt.t
Sourceval property_exists : t -> string -> bool Lwt.t
Sourceval add_capability : t -> string -> unit Lwt.t
Sourceval query_capability : t -> string -> bool Lwt.t
Sourceval lock : t -> string -> bool Lwt.t
Sourceval unlock : t -> bool Lwt.t
Sourceval acquire_interface_lock : t -> string -> bool -> unit Lwt.t
Sourceval release_interface_lock : t -> string -> unit Lwt.t
Sourceval is_caller_locked_out : t -> string -> string -> bool Lwt.t
Sourceval is_caller_privileged : t -> string -> string -> string Lwt.t
Sourceval is_locked_by_others : t -> string -> bool Lwt.t
Sourceval string_list_append : t -> string -> string -> unit Lwt.t
Sourceval string_list_prepend : t -> string -> string -> unit Lwt.t
Sourceval string_list_remove : t -> string -> string -> unit Lwt.t
Sourceval emit_condition : t -> string -> string -> bool Lwt.t
Sourceval rescan : t -> bool Lwt.t
Sourceval reprobe : t -> bool Lwt.t
Sourceval claim_interface : t -> string -> string -> bool Lwt.t
Sourceval addon_is_ready : t -> bool Lwt.t
Sourceval property_modified : t -> (int * (string * bool * bool) list) OBus_signal.t
Sourceval condition : t -> (string * string) OBus_signal.t
Sourceval interface_lock_acquired : t -> (string * string * int) OBus_signal.t
Sourceval interface_lock_released : t -> (string * string * int) OBus_signal.t
Specifics interfaces
Sourcemodule Volume : sig ... end
Sourcemodule Storage : sig ... end
Sourcemodule Storage_removable : sig ... end
Sourcemodule Wake_on_lan : sig ... end
Sourcemodule System_power_management : sig ... end
Sourcemodule Cpufreq : sig ... end
Sourcemodule Laptop_panel : sig ... end
Sourcemodule Kill_switch : sig ... end
OCaml

Innovation. Community. Security.