(sigil xmpp roster)
(sigil xmpp roster) - XMPP Roster Management
Provides roster (contact list) management including fetching, adding/removing contacts, and subscription handling.
Exports
roster-itemprocedureConstruct a roster-item struct.
roster-item?procedureTest if a value is a roster-item struct.
roster-item-jidprocedureGet the jid field of a roster-item struct.
roster-item-nameprocedureGet the name field of a roster-item struct.
roster-item-subscriptionprocedureGet the subscription field of a roster-item struct.
roster-item-groupsprocedureGet the groups field of a roster-item struct.
roster-item-askprocedureGet the ask field of a roster-item struct.
xmpp-request-rosterprocedureRequest the roster from the server.
Calls callback with a list of roster-item records.
(xmpp-request-roster conn
(lambda (items)
(for-each (lambda (item)
(display (roster-item-jid item)))
items)))xmpp-rosterprocedureGet the cached roster as a list of roster-items.
Returns #f if the roster hasn't been fetched yet.
xmpp-roster-itemprocedureLook up a specific contact in the cached roster.
xmpp-roster-addvariableAdd or update a contact in the roster.
(xmpp-roster-add conn "friend@example.com" name: "Friend")xmpp-roster-removeprocedureRemove a contact from the roster.
xmpp-subscribeprocedureSend a subscription request to a JID.
xmpp-accept-subscriptionprocedureAccept a subscription request from a JID.
xmpp-deny-subscriptionprocedureDeny a subscription request from a JID.
xmpp-unsubscribeprocedureUnsubscribe from a JID's presence.