OBUS-GEN-SERVER(1)

πŸ’… OBUS-GEN-SERVER β€” bestie edition

okay so welcome to obus-gen-server, a manual page from the General Commands Manual section (that's section 1, iykyk). she generates server-side ocaml bindings from D-Bus introspection files and honestly? she ate. 🫢


✨ NAME ✨

obus-gen-server β€” generate server-side ocaml bindings from D-Bus introspection files 🌸


πŸŽ€ SYNOPSIS πŸŽ€

obus-gen-server [ options ] input-files

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, obus-gen-server generates an ocaml module from D-Bus introspection files. the generated module contains code for defining a D-Bus service that implements the D-Bus interfaces listed in the introspection files. periodt. πŸ’…

she does not work alone tho β€” she depends on the interface module generated with obus-gen-interface. so like, get that one first, bestie. no cap.

and here's the thing that lowkey surprises people: the module generated by obus-gen-server it is meant to be edited. yes queen, it's a starting point, not a final answer. go in there, make it yours. ✨


πŸ”₯ OPTIONS πŸ”₯

  • -o output-prefix β€” use this name as the output prefix. it defaults to the input file name without its extension, extended with "_server". so like, if your input file is named "foo.xml" (or "foo.obus"), then obus-gen-server will generate foo_server.ml and foo_server.mli. iconic behaviour fr fr. πŸ’–
  • -keep-common β€” keeps the common interfaces, i.e. all interfaces starting with "org.freedesktop.DBus". by default they are dropped. so if you're wondering where they went… yeah, that's why. 🫠
  • -help or --help β€” display a short usage summary and exit. the classic. the beloved. the main character of every CLI. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

JΓ©rΓ©mie Dimino <jeremie@dimino.org>


🌈 SEE ALSO 🌈


okay so quick vibe check: remember that this module is meant to be edited, and that common interfaces get dropped unless you pass -keep-common. those two things are the plot twists. πŸŽ€

and that's the whole page bestie, we did it πŸ’œ this one's dated April 2010 and it belongs to the OBUS-GEN-SERVER(1) of the General Commands Manual β€” stan forever, mwah πŸ’…βœ¨πŸ¦‹