[ADD/WIP] VCard4, slightly more PEPwerk

This commit is contained in:
LDA 2024-07-22 18:02:24 +02:00
commit ee004ca9c0
10 changed files with 313 additions and 32 deletions

View file

@ -120,6 +120,8 @@ IQResult(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
{
XMLElement *vcard = XMLookForTKV(stanza, "vCard", "xmlns", "vcard-temp");
/* TODO: Move this to PEP */
XMLElement *event = XMLookForTKV(stanza, "pubsub",
"xmlns", "http://jabber.org/protocol/pubsub"
);
@ -425,10 +427,15 @@ IQSet(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
}
#undef DISCO
void IQStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
void
IQStanza(ParseeData *args, XMLElement *stanza, XMPPThread *thr)
{
char *type;
type = HashMapGet(stanza->attrs, "type");
char *type = HashMapGet(stanza->attrs, "type");
if (PEPManagerHandle(thr->info->pep_manager, stanza))
{
return;
}
#define OnType(ctyp, callback) do \
{ \
if (StrEquals(type, #ctyp)) \