[ADD/WIP] One-way chatstates, capabilities

No avatarwerk today because avatars are an absolute sore.
This commit is contained in:
LDA 2024-07-02 02:21:31 +02:00
commit 6b0f08c49e
10 changed files with 349 additions and 24 deletions

View file

@ -38,6 +38,7 @@ extern HashMap * ASFind(const ParseeConfig *, char *, char *);
/* Sends a message event with a specific type and body.
* Said body is freed during the function's execution. */
extern char * ASSend(const ParseeConfig *, char *, char *, char *, HashMap *);
extern void ASType(const ParseeConfig *, char *, char *, bool);
/* Sets a state event with a specific type and body */
extern void ASSetState(const ParseeConfig *conf, char *id, char *type, char *key, char *mask, HashMap *event);

8
src/include/Bot.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef PARSEE_BOT_H
#define PARSEE_BOT_H
#include <Cytoplasm/HashMap.h>
#define BotInitialise() profile =
#endif

View file

@ -73,4 +73,9 @@ extern char * XMPPGetReplacedID(XMLElement *);
/* Get the replied-to stanza ID, if existent. */
extern char * XMPPGetReply(XMLElement *elem);
/* Generate the B64-encoded SHA-256 hash for the 'ver' field in caps. */
extern char * XMPPGenerateVer(void);
/* Annotates a presence with https://xmpp.org/extensions/xep-0115.html */
extern void XMPPAnnotatePresence(XMLElement *presence);
#endif