1 ;;; jabber-si-common.el --- stream initiation (JEP-0095)
3 ;; Copyright (C) 2006 Magnus Henoch
5 ;; Author: Magnus Henoch <mange@freemail.hu>
7 ;; This file is free software; you can redistribute it and/or modify
8 ;; it under the terms of the GNU General Public License as published by
9 ;; the Free Software Foundation; either version 2, or (at your option)
12 ;; This file is distributed in the hope that it will be useful,
13 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 ;; GNU General Public License for more details.
17 ;; You should have received a copy of the GNU General Public License
18 ;; along with GNU Emacs; see the file COPYING. If not, write to
19 ;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 ;; Boston, MA 02110-1301, USA.
22 (defvar jabber-si-stream-methods nil
23 "Supported SI stream methods.
25 Each entry is a list, containing:
26 * The namespace URI of the stream method
27 * Active initiation function
28 * Passive initiation function
30 The active initiation function should initiate the connection,
31 while the passive initiation function should wait for an incoming
32 connection. Both functions take the same arguments:
36 * \"connection established\" function
38 The \"connection established\" function should be called when the
39 stream has been established and data can be transferred. It is part
40 of the profile, and takes the following arguments:
45 - \"send data\" function, with one string argument
46 - an error message, when connection failed
48 It returns an \"incoming data\" function.
50 The \"incoming data\" function should be called when data arrives on
51 the stream. It takes these arguments:
55 * A string containing the received data, or nil on EOF
57 If it returns nil, the stream should be closed.")
59 (provide 'jabber-si-common
)
60 ;; arch-tag: 9e7a5c8a-bdde-11da-8030-000a95c2fcd0
61 ;;; jabber-si-common.el ends here