Coding Style🔗
The coding style follows the GNOME Coding Style. This page only lists where xdg-desktop-portal diverges or adds conventions.
Types🔗
New code should use standard C types (int, char, unsigned int,
uint32_t, size_t). Use GLib types only where the API requires them
(gboolean). Older code still uses gchar, guint, etc.
Headers🔗
Use #pragma once instead of traditional include guards. Include order:
config.h(always first)System headers
GLib/GIO headers
Local headers
Comments🔗
Use
/* */comments only, not//.