js: Move app delete to C.
All checks were successful
Build Tilde Friends / Build-All (push) Successful in 14m34s

This commit is contained in:
2024-10-25 13:58:06 -04:00
parent 2e66666bdf
commit fa00a41fe0
4 changed files with 144 additions and 32 deletions

View File

@ -399,6 +399,25 @@ const char* tf_ssb_db_get_property(tf_ssb_t* ssb, const char* id, const char* ke
*/
bool tf_ssb_db_set_property(tf_ssb_t* ssb, const char* id, const char* key, const char* value);
/**
** Remove an entry in the properties table.
** @param ssb The SSB instance.
** @param id The user.
** @param key The property key.
** @return true if the property was removed successfully.
*/
bool tf_ssb_db_remove_property(tf_ssb_t* ssb, const char* id, const char* key);
/**
** Remove a value from an entry in the properties table that is a JSON array.
** @param ssb The SSB instance.
** @param id The user.
** @param key The property key.
** @param value The value to remove from the JSON array.
** @return true if the property was updated.
*/
bool tf_ssb_db_remove_value_from_array_property(tf_ssb_t* ssb, const char* id, const char* key, const char* value);
/**
** Resolve a hostname to its index path by global settings.
** @param ssb The SSB instance.