summaryrefslogtreecommitdiff
path: root/docs/man/obus-gen-interface.1
blob: 1ca272d58a07b65dbf20bd1e4f665efabb962e77 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
\" obus-gen-interface.1
\" --------------------
\" Copyright : (c) 2010, Jeremie Dimino <jeremie@dimino.org>
\" Licence   : BSD3
\"
\" This file is a part of obus, an ocaml implementation of D-Bus.

.TH OBUS-GEN-INTERFACE 1 "April 2010"

.SH NAME
obus-gen-interface \- convert D-Bus introspection files to ocaml code

.SH SYNOPSIS
.B obus-gen-interface
[
.I options
]
.I input-file

.SH DESCRIPTION

.B obus-gen-interface
generates an OCaml module from a D-Bus introspection file. The
generated module contains methods, signals and properties
definitions. It is required for by both client-side and server-side
code.

Note that the files generated by
.B obus-gen-interface
are not meant to be edited.

.SH OPTIONS

.IP "-o output-prefix"
Use this name as output prefix. It defaults to the input file name
without its extension and extended with "_interfaces". For example, if
the input file name is "foo.xml" (or "foo.obus"), then
"obus-gen-interface" will generate "foo_interfaces.ml" and
"foo_interfaces.mli".

.IP "-keep-common"
Keeps common interfaces, i.e. all interfaces starting with
"org.freedesktop.DBus". By default they are dropped.

.IP "-mode {both|client|server}"
Set the code generation mode. It defaults to "both". In "client" mode,
only code for client-side use is generated. In "server" mode, only
code for server-side use is generated. In "both" mode, code for
client-side and server-side use is generated.

.IP "-help or --help"
Display a short usage summary and exit.

.SH AUTHOR
Jérémie Dimino <jeremie@dimino.org>

.SH "SEE ALSO"
.BR obus-introspect (1),
.BR obus-gen-client (1),
.BR obus-gen-server (1).