[MOD] Add width/height information when possible

This commit is contained in:
LDA 2024-09-30 06:11:31 +02:00
commit d989331716
5 changed files with 103 additions and 3 deletions

View file

@ -3,6 +3,8 @@
#include <Cytoplasm/Json.h>
#include "FileInfo.h"
/* A simple representation of everything. It is not as complex as
* Telodendria's CommonID parser, simply because Parsee does not
* need such complexity. */
@ -33,7 +35,7 @@ extern HashMap * MatrixCreateReact(char *event, char *body);
extern HashMap * MatrixCreateReplace(char *event, char *body);
/* Creates the content for a media file. */
extern HashMap * MatrixCreateMedia(char *mxc, char *body, char *mime);
extern HashMap * MatrixCreateMedia(char *mxc, char *body, char *mime, FileInfo *info);
/* Creates the content for a m.room.name state event */
extern HashMap * MatrixCreateNameState(char *name);