ssb: Add get_identity, get_sequence, and get_profile commands. #89
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 25m41s

This commit is contained in:
2025-01-05 17:16:05 -05:00
parent c469ef23e6
commit 5594bee618
3 changed files with 208 additions and 0 deletions

View File

@ -483,6 +483,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 the latest profile information for the given identity.
** @param db The database.
** @param id The identity.
** @return A JSON representation of the latest profile information set for the account. Free with tf_free().
*/
const char* tf_ssb_db_get_profile(sqlite3* db, const char* id);
/**
** An SQLite authorizer callback. See https://www.sqlite.org/c3ref/set_authorizer.html for use.
** @param user_data User data registered with the authorizer.