gmessages: Add nullable annotation for `log_domain` in `GLogFunc`
Add a missing (nullable)
annotation for the log_domain
parameter in the
GLogFunc
callback. This ensures consistency with the documentation and
usage in functions like g_log_set_handler
, where log_domain
can be NULL
.
Without this annotation, the GIR file generated from the C source does not
reflect the nullability of log_domain
, leading to potential issues in
language bindings and other introspection-based tools.
This change updates the documentation in glib/gmessages.c
to include the
nullable annotation and clarifies the expected behavior of the GLogFunc
callback.
Move details about the log_domain
parameter being NULL
or an empty string
for the default application domain from argument descriptions to the main
function descriptions.
This ensures concise argument descriptions while providing a clear explanation of exceptions in the function body.
Fixes #3552 (closed)