forked from cory/tildefriends
getIdentityInfo => C.
This commit is contained in:
12
src/ssb.db.h
12
src/ssb.db.h
@ -195,6 +195,18 @@ bool tf_ssb_db_identity_delete(tf_ssb_t* ssb, const char* user, const char* publ
|
||||
*/
|
||||
bool tf_ssb_db_identity_add(tf_ssb_t* ssb, const char* user, const char* public_key, const char* private_key);
|
||||
|
||||
/**
|
||||
** Get the active identity for a user for a given package.
|
||||
** @param db An sqlite3 database.
|
||||
** @param user The username.
|
||||
** @param package_owner The username of the package owner.
|
||||
** @param package_name The name of the package.
|
||||
** @param[out] out_identity Populated with the identity.
|
||||
** @param out_identity_size The size of the out_identity buffer.
|
||||
** @return true If the identity was retrieved.
|
||||
*/
|
||||
bool tf_ssb_db_identity_get_active(sqlite3* db, const char* user, const char* package_owner, const char* package_name, char* out_identity, size_t out_identity_size);
|
||||
|
||||
/**
|
||||
** Call a function for each identity owned by a user.
|
||||
** @param ssb The SSB instance.
|
||||
|
Reference in New Issue
Block a user