[ADD/WIP] XMPP->Matrix avatar, start bridging bans

I still hate XEP-0084.
This commit is contained in:
LDA 2024-07-05 03:10:43 +02:00
commit 1f658ece76
9 changed files with 587 additions and 27 deletions

View file

@ -28,6 +28,7 @@ extern void ASJoin(const ParseeConfig *, char *, char *);
/* Bans from a room a specific user */
extern void ASBan(const ParseeConfig *, char *, char *);
extern void ASKick(const ParseeConfig *, char *, char *);
/* Invites from a room a specific user */
extern void ASInvite(const ParseeConfig *, char *, char *);
@ -53,6 +54,7 @@ extern char * ASCreateRoom(const ParseeConfig *c, char *by, char *alias);
/* Sets a user's displayname */
extern void ASSetName(const ParseeConfig *c, char *user, char *name);
extern void ASSetAvatar(const ParseeConfig *c, char *user, char *mxc);
/* Returns the user's name in a room, or a copy of the MXID itself, to be
* Free'd. */
@ -63,4 +65,7 @@ extern char * ASUpload(const ParseeConfig *c, Stream *from, unsigned int size);
/* Reuploads a HTTP URL to Matrix, with an optional MIME type returned. */
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);
#endif

View file

@ -8,6 +8,7 @@
extern Stream * StrStreamWriter(char **buffer);
/* Creates a string stream reader. The referenced buffer may be everywhere. */
extern Stream * StrStreamReader(char *buffer);
extern Stream * StrStreamReaderN(char *buffer, int n);
#define StrStreamReader(buf) StrStreamReaderN(buf, 0)
#endif