Skip to content

Commit

Permalink
Some fixes to obus client generation
Browse files Browse the repository at this point in the history
 - Fix compilation error when generating signals.
 - Use keyword arguments when calling OBus_proxy.make, fixing several
   compilation warnings.
  • Loading branch information
SquidDev committed May 30, 2021
1 parent 8d38ee6 commit 7f95530
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/tools_util/utils.ml
Expand Up @@ -130,7 +130,7 @@ let convertor_recv top typ =
(fun top t ->
match t with
| "int32" | "uint32" -> Some "Int32.to_int"
| "object_path" -> Some(paren top ("OBus_proxy.make (OBus_context.sender context)"))
| "object_path" -> Some(paren top ("(fun x -> OBus_proxy.make ~peer:(OBus_context.sender context) ~path:x)"))
| name when List.mem name dbus_symbols -> None
| name -> Some("make_" ^ name))
top typ
Expand Down
2 changes: 1 addition & 1 deletion tools/transformers/obus_gen_client.ml
Expand Up @@ -141,7 +141,7 @@ let print_impl oc name members symbols annotations =
output_string oc " ";
print_names oc names;
output_string oc ")\n";
fprintf oc " (OBus_signal.connect s_%s proxy)\n" name
fprintf oc " (OBus_signal.make s_%s proxy)\n" name
end
| Property(name, typ, access, annotations) ->
fprintf oc "\n let %s proxy =\n" (OBus_name.ocaml_lid name);
Expand Down

0 comments on commit 7f95530

Please sign in to comment.