OBUS-GEN-INTERFACE(1)
OBUS-GEN-INTERFACE π β¨
okay bestie, welcome to section 1 of the General Commands Manual, we're doing the whole glow-up on obus-gen-interface and honestly? it's giving code-gen icon energy π
β¨ NAME β¨
obus-gen-interface β convert D-Bus introspection files to ocaml code π¦
πΈ SYNOPSIS πΈ
obus-gen-interface [ options ] input-file
π DESCRIPTION π
so basically obus-gen-interface takes a D-Bus introspection file and β¨manifestβ¨ an OCaml module out of it. no cap. the generated module is packed with your methods, signals and properties definitions, and it's lowkey mandatory β both the client-side code and the server-side code need it. everyone's depending on it, main character behaviour fr fr π
not me reminding you that the files obus-gen-interface generates are not meant to be edited. hands off bestie, they're not yours to touch π that's the whole point of generating them.
π OPTIONS π
-o output-prefixβ use this name as the output prefix. if you don't say anything it defaults to the input file name with its extension chopped off, plus"_interfaces"glued on the end. so for example, if your input file is called"foo.xml"(or"foo.obus"), then"obus-gen-interface"will generate"foo_interfaces.ml"and"foo_interfaces.mli". cute, consistent, slay π-keep-commonβ keeps the common interfaces, i.e. all interfaces starting with"org.freedesktop.DBus". by default they get dropped, so if you're wondering where they wentβ¦ yeah, they were never there π«Ά-mode {both|client|server}β sets the code generation mode. defaults to"both". in"client"mode only client-side code gets generated. in"server"mode only server-side code gets generated. in"both"mode you get client-side and server-side code generated. pick your fighter β¨-helpor--helpβ displays a short usage summary and exits. your little safety blanket, bestie π
π AUTHOR π
JΓ©rΓ©mie Dimino <jeremie@dimino.org>
π SEE ALSO π
obus-introspect(1), obus-gen-client(1), obus-gen-server(1).
okay that's the whole page, you ate it, periodt π this was the April 2010 era of OBUS-GEN-INTERFACE, part of the General Commands Manual fam β go forth and generate, bestie π§β
π¦ where this page comes from
- debian bookworm: libobus-ocaml-bin 1.2.4-1+b3 Β· BSD-C3
- debian trixie: libobus-ocaml-bin 1.2.5-1+b9 Β· BSD-C3
- ubuntu jammy: libobus-ocaml-bin 1.2.3-1build8 Β· BSD-C3
- ubuntu noble: libobus-ocaml-bin 1.2.4-3build5 Β· BSD-C3
- ubuntu questing: libobus-ocaml-bin 1.2.5-1build8
- ubuntu resolute: libobus-ocaml-bin 1.2.5-1build12 Β· BSD-C3
- ubuntu stonking: libobus-ocaml-bin 1.2.5-2build2 Β· BSD-C3
- (c) 2010, Jeremie Dimino <jeremie@dimino.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms