diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 13:13:52 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-14 13:13:52 +0300 |
| commit | 1ab3e5a123109704789c2768e11a4f9af515821d (patch) | |
| tree | 31ee03e58093a58100c6eb58681d5d29648a5ddd /include/yasl/desktop.h | |
| parent | d86fa6215d40caa7852dbbd6a8cf4aa8e89dd879 (diff) | |
Redefine public and rendering APIs with explicit contracts
Diffstat (limited to 'include/yasl/desktop.h')
| -rw-r--r-- | include/yasl/desktop.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/yasl/desktop.h b/include/yasl/desktop.h index 2c2379e..6dc24e9 100644 --- a/include/yasl/desktop.h +++ b/include/yasl/desktop.h @@ -5,16 +5,20 @@ #ifdef __cplusplus extern "C" { #endif -enum yasl_appearance { YASL_APPEARANCE_DARK=1u, YASL_APPEARANCE_LIGHT=2u, YASL_APPEARANCE_HIGH_CONTRAST=4u }; -YASL_API bool yasl_open_uri(const char *uri); -YASL_API bool yasl_notify(const char *title, const char *body); -YASL_API unsigned yasl_appearance(void); -YASL_API bool yasl_surface_bell(yasl_surface *surface); +enum yasl_appearance { + YASL_APPEARANCE_DARK = 1u, + YASL_APPEARANCE_LIGHT = 2u, + YASL_APPEARANCE_HIGH_CONTRAST = 4u +}; +YASL_API int yasl_open_uri(const char *uri); +YASL_API int yasl_notify(const char *title, const char *body); +YASL_API unsigned yasl_get_appearance(void); +YASL_API int yasl_surface_bell(yasl_surface *surface); /** Full byte length excluding NUL, zero on failure. Buffer unchanged unless cap * exceeds returned length. NULL/zero queries size. These three are thread-safe. */ -YASL_API size_t yasl_executable_path(char *out, size_t capacity); -YASL_API size_t yasl_resource_dir(char *out, size_t capacity); -YASL_API size_t yasl_default_locale(char *out, size_t capacity); +YASL_API size_t yasl_get_executable_path(char *out, size_t capacity); +YASL_API size_t yasl_get_resource_dir(char *out, size_t capacity); +YASL_API size_t yasl_get_default_locale(char *out, size_t capacity); #ifdef __cplusplus } #endif |
