citadel
About: Citadel is an advanced messaging and collaboration system for groupware and BBS applications (preferred OS: Linux).
![]() ![]() |
#include "../../sysdep.h"
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <pwd.h>
#include <errno.h>
#include <sys/types.h>
#include <assert.h>
#include <time.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <ctype.h>
#include <expat.h>
#include <libcitadel.h>
#include "../../citadel_defs.h"
#include "../../server.h"
#include "../../citserver.h"
#include "../../support.h"
#include "../../config.h"
#include "../../internet_addressing.h"
#include "../../ctdl_module.h"
#include "serv_xmpp.h"
Go to the source code of this file.
Functions | |
void | xmpp_indicate_presence (char *presence_jid) |
int | xmpp_is_visible (struct CitContext *cptr, struct CitContext *to_whom) |
void | xmpp_wholist_presence_dump (void) |
void | xmpp_destroy_buddy (char *presence_jid, int aggressively) |
void | xmpp_presence_notify (char *presence_jid, int event_type) |
void | xmpp_fetch_mortuary_backend (long msgnum, void *userdata) |
HashList * | xmpp_fetch_mortuary (void) |
void | xmpp_store_mortuary (HashList *mortuary) |
void | xmpp_massacre_roster (void) |
void | xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster (void) |
void xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster | ( | void | ) |
Definition at line 343 of file xmpp_presence.c.
References CC, CitContext::cs_principal_id, CtdlGetContextArray(), free(), xmpp_destroy_buddy(), xmpp_fetch_mortuary(), and xmpp_is_visible().
Referenced by xmpp_query_namespace().
void xmpp_destroy_buddy | ( | char * | presence_jid, |
int | aggressively | ||
) |
Definition at line 107 of file xmpp_presence.c.
References CC, cprintf(), CtdlGetConfigStr(), xmlesc(), and XMPP.
Referenced by xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(), and xmpp_presence_notify().
HashList * xmpp_fetch_mortuary | ( | void | ) |
Definition at line 251 of file xmpp_presence.c.
References CC, CtdlForEachMessage(), CtdlGetRoom(), MSGS_LAST, USERCONFIGROOM, and xmpp_fetch_mortuary_backend().
Referenced by xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(), and xmpp_massacre_roster().
void xmpp_fetch_mortuary_backend | ( | long | msgnum, |
void * | userdata | ||
) |
Definition at line 208 of file xmpp_presence.c.
References CtdlMessage::cm_fields, CM_Free(), CtdlFetchMessage(), and eMesageText.
Referenced by xmpp_fetch_mortuary().
void xmpp_indicate_presence | ( | char * | presence_jid | ) |
Definition at line 53 of file xmpp_presence.c.
References cprintf(), xmlesc(), and XMPP.
Referenced by xmpp_presence_notify(), and xmpp_wholist_presence_dump().
int xmpp_is_visible | ( | struct CitContext * | cptr, |
struct CitContext * | to_whom | ||
) |
Definition at line 66 of file xmpp_presence.c.
References ctdluser::axlevel, CitContext::can_receive_im, CitContext::cs_flags, CS_STEALTH, CitContext::logged_in, CitContext::user, and ctdluser::usernum.
Referenced by xmpp_delete_old_buddies_who_no_longer_exist_from_the_client_roster(), xmpp_iq_roster_query(), xmpp_massacre_roster(), xmpp_presence_notify(), and xmpp_wholist_presence_dump().
void xmpp_massacre_roster | ( | void | ) |
Definition at line 308 of file xmpp_presence.c.
References CC, CitContext::cs_principal_id, CtdlGetContextArray(), free(), xmpp_fetch_mortuary(), xmpp_is_visible(), and xmpp_store_mortuary().
Referenced by xmpp_xml_end().
void xmpp_presence_notify | ( | char * | presence_jid, |
int | event_type | ||
) |
Definition at line 157 of file xmpp_presence.c.
References CC, cprintf(), CitContext::cs_principal_id, CtdlGetContextArray(), free(), xmpp_destroy_buddy(), XMPP_EVT_LOGIN, xmpp_indicate_presence(), xmpp_is_visible(), and xmpp_roster_item().
Referenced by xmpp_process_events().
void xmpp_store_mortuary | ( | HashList * | mortuary | ) |
Definition at line 273 of file xmpp_presence.c.
References CC, CtdlDeleteMessages(), quickie_message(), and USERCONFIGROOM.
Referenced by xmpp_massacre_roster().
void xmpp_wholist_presence_dump | ( | void | ) |
Definition at line 85 of file xmpp_presence.c.
References CC, CitContext::cs_principal_id, CtdlGetContextArray(), free(), xmpp_indicate_presence(), and xmpp_is_visible().
Referenced by xmpp_xml_end().