forked from cory/tildefriends
js: Move app delete to C.
This commit is contained in:
19
src/ssb.db.h
19
src/ssb.db.h
@ -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.
|
||||
|
Reference in New Issue
Block a user