forked from cory/tildefriends
ssb: Add a get_contacts command to enumerate follows, blocks, and friends.
This commit is contained in:
13
src/ssb.db.h
13
src/ssb.db.h
@ -308,9 +308,10 @@ const char** tf_ssb_db_following_deep_ids(tf_ssb_t* ssb, const char** ids, int c
|
||||
** @param ids An array of identities.
|
||||
** @param count The number of identities.
|
||||
** @param depth The following depth to use (prefer 2).
|
||||
** @return An array of information about visible accounts. Fere with tf_free().
|
||||
** @param include_blocks Whether to include blocked identities in results.
|
||||
** @return An array of information about visible accounts. Free with tf_free().
|
||||
*/
|
||||
tf_ssb_following_t* tf_ssb_db_following_deep(tf_ssb_t* ssb, const char** ids, int count, int depth);
|
||||
tf_ssb_following_t* tf_ssb_db_following_deep(tf_ssb_t* ssb, const char** ids, int count, int depth, bool include_blocks);
|
||||
|
||||
/**
|
||||
** Get all visible identities from all local accounts.
|
||||
@ -493,6 +494,14 @@ bool tf_ssb_db_get_global_setting_string(sqlite3* db, const char* name, char* ou
|
||||
*/
|
||||
const char* tf_ssb_db_get_profile(sqlite3* db, const char* id);
|
||||
|
||||
/**
|
||||
** Get the latest profile name for the given identity.
|
||||
** @param db The database.
|
||||
** @param id The identity.
|
||||
** @return The name. Free with tf_free().
|
||||
*/
|
||||
const char* tf_ssb_db_get_profile_name(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.
|
||||
|
Reference in New Issue
Block a user