-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.lisp
79 lines (76 loc) · 2.34 KB
/
package.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
;;;; $Id: package.lisp,v 1.7 2007/12/17 09:09:06 kcrosbie Exp $
;;;; $Source: /project/cl-xmpp/cvsroot/cl-xmpp/package.lisp,v $
;;;; See the LICENSE file for licensing information.
(in-package :cl-user)
(eval-when (:execute :load-toplevel :compile-toplevel)
(defpackage :cl-xmpp
(:use :cl
#+allegro :socket
#+openmcl :ccl)
(:nicknames :xmpp)
(:local-nicknames
(:cxml :fxml)
(:cxml-dom :fxml-dom)
(:dom :fxml.dom)
(:klacks :fxml.klacks)
(:sax :fxml.sax))
(:export
;; connection-related
:connect :disconnect :stream- :hostname :port :connectedp
:receive-stanza-loop :begin-xml-stream :end-xml-stream :with-iq
:with-iq-query :connection :username :mechanisms :features
:feature-p :feature-required-p :mechanism-p :receive-stanza
:server-stream :stop-stanza-loop
;; only available if you've loaded cl-xmpp-tls
:connect-tls :connect-tls2
;; xmpp commands
:discover
:registration-requirements :register
:auth-requirements :auth
:presence :message :bind :session
;; subscriptions
:request-subscription :approve-subscription
:deny/cancel-subscription :unsubscribe
;; roster
:get-roster :roster-add :roster-remove
;; privacy-lists
:get-privacy-lists :get-privacy-list
;; dom-ish interface
:xml-element :name :elements :attributes :node :data
:xml-attribute :value :get-element :get-attribute
;; event interface
:event
:presence
:roster
:xmpp-protocol-error
:xmpp-protocol-error-auth
:xmpp-protocol-error-wait
:xmpp-protocol-error-cancel
:xmpp-protocol-error-modify
:disco-info :features
:identity-
:disco :identities
:disco-items :items
:item :jid :id
:message :to :from :body :subject :type- :chatroom :password
:simple-result :invitation
;; user-hooks for handling events
:handle
;; variables
:*default-port :*default-hostname* :*errors* :*debug-stream*
;; multi-user-chat
:create-chatroom
:join-chatroom
:leave-chatroom
:invite-to-chatroom
:kick-from-chatroom
:grant-room-membership
:revoke-room-membership
:broadcast-room
:set-chatroom-subject
:default-room-config
:destroy-chatroom
:revoke-voice
:get-online-users
;; errors
:server-disconnect)))