[MOD/ADD] Separate AS code, XMPP reactions removal

This commit is contained in:
LDA 2024-08-21 13:51:52 +02:00
commit fb511b4df0
16 changed files with 1183 additions and 1029 deletions

View file

@ -3,7 +3,8 @@
/*-*
* Functions used to communicate with a Matrix server and execute actions
* over HTTP(S)+JSON. This effectively serves as Parsee's Matrix SDK.
* TODO: Write my own RanSDK for KappaChat.
* TODO: Write my own RumiaSDK for the KappaChat project(not the client
* itself).
* --------
* Writren-By: LDA */
@ -156,6 +157,17 @@ extern char * ASUpload(const ParseeConfig *c, Stream *from, unsigned int size, c
* See-Also: ASUpload */
extern char * ASReupload(const ParseeConfig *c, char *from, char **mime);
extern HashMap * ASGetUserConfig(const ParseeConfig *c, char *user, char *key);
extern void ASSetUserConfig(const ParseeConfig *c, char *u, char *key, HashMap *map);
/** Gets up to {n} relations to an event(with a specific type, optionally).
* ----------
* Returns: A list of JSON objects[HEAP]
* Thrasher: ASFreeRelations
* See-Also: https://spec.matrix.org/v1.7/client-server-api/#get_matrixclientv1roomsroomidrelationseventid */
extern Array * ASGetRelations(const ParseeConfig *c, size_t n, char *room, char *event, char *type);
/** Destroys a relation list created by {ASGetRelations}
* ------------
* Returns: NOTHING
* Thrashes: {relations}
* See-Also: ASGetRelations */
extern void ASFreeRelations(Array *relations);
#endif