Add EventRedact() prototype.

This commit is contained in:
Jordan Bancino 2023-07-09 23:18:18 +00:00
parent b1c23ee53a
commit a4330123b9
2 changed files with 7 additions and 1 deletions

View file

@ -22,7 +22,7 @@ Milestone: v0.4.0
[x] Rename Sha2.h to just Sha; add Sha1() function [x] Rename Sha2.h to just Sha; add Sha1() function
[x] Make Sha256() return raw bytes; add function to [x] Make Sha256() return raw bytes; add function to
convert to hex string. convert to hex string.
[ ] 8: Rooms [~] 8: Rooms
[~] 9: User Data [~] 9: User Data
[x] Profiles [x] Profiles
[~] Directory [~] Directory

View file

@ -52,4 +52,10 @@ extern char * EventContentHash(HashMap *);
*/ */
extern char * EventIdGet(Room *, HashMap *); extern char * EventIdGet(Room *, HashMap *);
/**
* Redact an event according to the rules for the given
* room. The event is modified in place.
*/
extern int EventRedact(Room *, HashMap *);
#endif /* TELODENDRIA_EVENT_H */ #endif /* TELODENDRIA_EVENT_H */