ssb: Add a has_blob command. #89
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 29m14s

This commit is contained in:
2025-01-06 20:46:16 -05:00
parent 7f87714b58
commit d0bbd7f24f
4 changed files with 66 additions and 6 deletions

View File

@ -39,11 +39,11 @@ bool tf_ssb_db_message_content_get(tf_ssb_t* ssb, const char* id, uint8_t** out_
/**
** Determine whether a blob is in the database by ID.
** @param ssb The SSB instasnce.
** @param db The SQLite database instance to use.
** @param id The blob identifier.
** @return true If the blob is in the database.
*/
bool tf_ssb_db_blob_has(tf_ssb_t* ssb, const char* id);
bool tf_ssb_db_blob_has(sqlite3* db, const char* id);
/**
** Retrieve a blob from the database.