core: core.globalSettingsGet JS => C.

This commit is contained in:
2025-10-15 18:24:38 -04:00
parent 8ca64550e5
commit 4bdc7ec616
4 changed files with 131 additions and 4 deletions

View File

@@ -500,6 +500,14 @@ bool tf_ssb_db_get_global_setting_int64(sqlite3* db, const char* name, int64_t*
*/
bool tf_ssb_db_get_global_setting_string(sqlite3* db, const char* name, char* out_value, size_t size);
/**
** Get a string global setting value.
** @param db The database.
** @param name The setting name.
** @return The setting if found.
*/
const char* tf_ssb_db_get_global_setting_string_alloc(sqlite3* db, const char* name);
/**
** Set a global setting from a string representation of its value.
** @param db The database.