diff options
author | Julien Puydt <jpuydt@debian.org> | 2022-10-14 09:02:49 +0200 |
---|---|---|
committer | Julien Puydt <jpuydt@debian.org> | 2022-10-14 09:02:49 +0200 |
commit | cc997a6ac46d5c8be431a622a06ef27487f82024 (patch) | |
tree | 07150d70c9e5cd71db106864d7b982f9ce20f65d /src/protocol/oBus_method.mli |
Import obus_1.2.4.orig.tar.gz
[dgit import orig obus_1.2.4.orig.tar.gz]
Diffstat (limited to 'src/protocol/oBus_method.mli')
-rw-r--r-- | src/protocol/oBus_method.mli | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/protocol/oBus_method.mli b/src/protocol/oBus_method.mli new file mode 100644 index 0000000..e568411 --- /dev/null +++ b/src/protocol/oBus_method.mli @@ -0,0 +1,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 *) |