summaryrefslogtreecommitdiff
path: root/src/protocol/oBus_method.mli
blob: e568411df7e415046eca906a9e5159fc398c74a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(*
 * oBus_method.mli
 * ---------------
 * Copyright : (c) 2010, Jeremie Dimino <jeremie@dimino.org>
 * Licence   : BSD3
 *
 * This file is a part of obus, an ocaml implementation of D-Bus.
 *)

(** D-Bus methods *)

val call : ('a, 'b) OBus_member.Method.t -> OBus_proxy.t -> 'a -> 'b Lwt.t
  (** [call meth proxy args] calls the method [meth] on the object
      pointed by [proxy], and wait for the reply. *)

val call_with_context : ('a, 'b) OBus_member.Method.t -> OBus_proxy.t -> 'a -> (OBus_context.t * 'b) Lwt.t
  (** [call_with_context meth proxy args] is like {!call} except that
      it also returns the context of the method return *)

val call_no_reply : ('a, 'b) OBus_member.Method.t -> OBus_proxy.t -> 'a -> unit Lwt.t
  (** [call_no_reply meth proxy args] is the same as {!call} except
      that it does not wait for a reply *)