1 /*
2  * jabberd - Jabber Open Source Server
3  * Copyright (c) 2002-2004 Jeremie Miller, Thomas Muldowney,
4  *                         Ryan Eatmon, Robert Norris
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307USA
19  */
20 
21 /** @file util/uri.h
22   * @brief common URIs
23   * @author Robert Norris
24   * $Revision: 1.1 $
25   * $Date: 2004/04/30 00:53:54 $
26   */
27 
28 #ifndef INCL_UTIL_URI_H
29 #define INCL_UTIL_URI_H 1
30 
31 #define uri_XML         "http://www.w3.org/XML/1998/namespace"
32 
33 /* known namespace uri */
34 #define uri_STREAMS     "http://etherx.jabber.org/streams"
35 #define uri_CLIENT      "jabber:client"
36 #define uri_SERVER      "jabber:server"
37 #define uri_DIALBACK    "jabber:server:dialback"
38 #define uri_DIALBACK_L	22	/* strlen(uri_DIALBACK) */
39 #define uri_URN_DIALBACK "urn:xmpp:features:dialback"
40 #define uri_TLS         "urn:ietf:params:xml:ns:xmpp-tls"
41 #define uri_SASL        "urn:ietf:params:xml:ns:xmpp-sasl"
42 #define uri_BIND        "urn:ietf:params:xml:ns:xmpp-bind"
43 #define uri_XSESSION    "urn:ietf:params:xml:ns:xmpp-session"
44 #define uri_XFRAMING    "urn:ietf:params:xml:ns:xmpp-framing"
45 #define uri_COMPRESS    "http://jabber.org/protocol/compress"
46 #define uri_COMPRESS_FEATURE "http://jabber.org/features/compress"
47 #define uri_ACK         "http://www.xmpp.org/extensions/xep-0198.html#ns"
48 #define uri_IQAUTH      "http://jabber.org/features/iq-auth"
49 #define uri_IQREGISTER  "http://jabber.org/features/iq-register"
50 #define uri_STREAM_ERR  "urn:ietf:params:xml:ns:xmpp-streams"
51 #define uri_STANZA_ERR  "urn:ietf:params:xml:ns:xmpp-stanzas"
52 #define uri_COMPONENT   "http://jabberd.jabberstudio.org/ns/component/1.0"
53 #define uri_SESSION     "http://jabberd.jabberstudio.org/ns/session/1.0"
54 #define uri_RESOLVER    "http://jabberd.jabberstudio.org/ns/resolver/1.0"
55 #define uri_XDATA       "jabber:x:data"
56 #define uri_OOB         "jabber:x:oob"
57 #define uri_ADDRESS_FEATURE "http://affinix.com/jabber/address"
58 #define uri_ROSTERVER   "urn:xmpp:features:rosterver"
59 
60 /* these are used by SM mainly */
61 #define uri_AUTH        "jabber:iq:auth"
62 #define uri_REGISTER    "jabber:iq:register"
63 #define uri_ROSTER      "jabber:iq:roster"
64 #define uri_AGENTS      "jabber:iq:agents"
65 #define uri_DELAY       "jabber:x:delay"
66 #define uri_URN_DELAY   "urn:xmpp:delay"
67 #define uri_TIME        "jabber:iq:time"
68 #define urn_TIME        "urn:xmpp:time"
69 #define uri_VERSION     "jabber:iq:version"
70 #define uri_BROWSE      "jabber:iq:browse"
71 #define uri_EVENT       "jabber:x:event"
72 #define uri_GATEWAY     "jabber:iq:gateway"
73 #define uri_EXPIRE      "jabber:x:expire"
74 #define uri_PRIVACY     "jabber:iq:privacy"
75 #define urn_BLOCKING    "urn:xmpp:blocking"
76 #define urn_BLOCKING_ERR "urn:xmpp:blocking:errors"
77 #define uri_SEARCH      "jabber:iq:search"
78 #define urn_PING        "urn:xmpp:ping"
79 #define uri_DISCO       "http://jabber.org/protocol/disco"
80 #define uri_DISCO_ITEMS "http://jabber.org/protocol/disco#items"
81 #define uri_DISCO_INFO  "http://jabber.org/protocol/disco#info"
82 #define uri_SERVERINFO  "http://jabber.org/network/serverinfo"
83 #define urn_SOFTWAREINFO "urn:xmpp:dataforms:softwareinfo"
84 
85 #define uri_AMP                         "http://jabber.org/protocol/amp"
86 #define uri_AMP_ERRORS                  "http://jabber.org/protocol/amp#errors"
87 #define uri_AMP_ACTION_DROP             "http://jabber.org/protocol/amp?action=drop"
88 #define uri_AMP_ACTION_ERROR            "http://jabber.org/protocol/amp?action=error"
89 #define uri_AMP_ACTION_NOTIFY           "http://jabber.org/protocol/amp?action=notify"
90 #define uri_AMP_CONDITION_DELIVER       "http://jabber.org/protocol/amp?condition=deliver"
91 #define uri_AMP_CONDITION_EXPIREAT      "http://jabber.org/protocol/amp?condition=expire-at"
92 #define uri_AMP_CONDITION_MATCHRESOURCE "http://jabber.org/protocol/amp?condition=match-resource"
93 
94 #endif
95