Write `c:symbol-prefix` where possible on `Vala.GIRWriter`
The gir-1.2 schema specifies the c:symbol-prefix
attribute for various types which are handy when generating bindings for other languages (for my use case it's Rust, using gtk-rs/gir).
On Repository
and Namespace
levels there exists:
-
c:indentifier-prefixes
as it's name says represents the prefix of an identifier, e.g.:Gtk
inGtkWindow
, this is the samec:prefix
alreadyvalac
generates. -
c:symbol-prefixes
the symbol prefix, such as,gtk
ingtk_window_new
.
On the other hand c:symbol-prefix
is, for example, application_window
on gtk_application_window_new
and can be specified for these types:
- Interfaces.
- Classes.
- Boxed.
- Record.
- Union.
I would love to take a look if this is desired to be implemented. This would push libraries created in Vala one more step for being used on Rust.