view mcabber/mcabber/caps.h @ 1984:b0470ef8669b

XEP 184: don't send receipts to buddies that have no presence subscription In order to not leak our presence, do not send message delivery receipts to senders who are not authorized to view our presence. (XEP-0184, section 8)
author Mikael Berthe <mikael@lilotux.net>
date Sun, 27 Mar 2011 12:45:41 +0200
parents e6d355e50d7a
children 51f032d5ca22
line wrap: on
line source

#ifndef __MCABBER_CAPS_H__
#define __MCABBER_CAPS_H__ 1

#include <glib.h>

void  caps_init(void);
void  caps_free(void);
void  caps_add(char *hash);
int   caps_has_hash(const char *hash);
void  caps_set_identity(char *hash,
                        const char *category,
                        const char *name,
                        const char *type);
void  caps_add_feature(char *hash, const char *feature);
int   caps_has_feature(char *hash, char *feature);
void  caps_foreach_feature(const char *hash, GFunc func, gpointer user_data);

char *caps_generate(void);

#endif /* __MCABBER_CAPS_H__ */

/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2:  For Vim users... */