annotate mcabber/mcabber/xmpp_defines.h @ 2225:dc3b3ac1ba76

Free the buffdata structures when buffers are closed Free the buffdata strcutures when buffers are closed and there are no more users (these structures can be shared if the "symlink" shared history is used).
author Mikael Berthe <mikael@lilotux.net>
date Sat, 07 Nov 2015 12:21:12 +0100
parents 634cc23e8c1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
1 #ifndef __MCABBER_XMPP_DEFINES_H__
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1602
diff changeset
2 #define __MCABBER_XMPP_DEFINES_H__ 1
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
3
1600
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents: 1599
diff changeset
4 #define MCABBER_CAPS_NODE "http://mcabber.com/caps"
c5ee395fbc8c Updated Entity Capabilities support (XEP-0115)
franky
parents: 1599
diff changeset
5
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
6 #define NS_CLIENT "jabber:client"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
7 #define NS_SERVER "jabber:server"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
8 #define NS_DIALBACK "jabber:server:dialback"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
9 #define NS_AUTH "jabber:iq:auth"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
10 #define NS_AUTH_CRYPT "jabber:iq:auth:crypt"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
11 #define NS_REGISTER "jabber:iq:register"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
12 #define NS_ROSTER "jabber:iq:roster"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
13 #define NS_OFFLINE "jabber:x:offline"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
14 #define NS_AGENT "jabber:iq:agent"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
15 #define NS_AGENTS "jabber:iq:agents"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
16 #define NS_DELAY "jabber:x:delay"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
17 #define NS_VERSION "jabber:iq:version"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
18 #define NS_TIME "jabber:iq:time"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
19 #define NS_VCARD "vcard-temp"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
20 #define NS_PRIVATE "jabber:iq:private"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
21 #define NS_SEARCH "jabber:iq:search"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
22 #define NS_OOB "jabber:iq:oob"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
23 #define NS_XOOB "jabber:x:oob"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
24 #define NS_ADMIN "jabber:iq:admin"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
25 #define NS_FILTER "jabber:iq:filter"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
26 #define NS_AUTH_0K "jabber:iq:auth:0k"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
27 #define NS_BROWSE "jabber:iq:browse"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
28 #define NS_EVENT "jabber:x:event"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
29 #define NS_CONFERENCE "jabber:iq:conference"
1951
1a01a7ef4e43 Add support for XEP-0249 / Direct MUC Invitations (Myhailo Danylenko)
Mikael Berthe <mikael@lilotux.net>
parents: 1908
diff changeset
30 // direct muc invitation (xep-0249)
1a01a7ef4e43 Add support for XEP-0249 / Direct MUC Invitations (Myhailo Danylenko)
Mikael Berthe <mikael@lilotux.net>
parents: 1908
diff changeset
31 #define NS_X_CONFERENCE "jabber:x:conference"
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
32 #define NS_SIGNED "jabber:x:signed"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
33 #define NS_ENCRYPTED "jabber:x:encrypted"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
34 #define NS_GATEWAY "jabber:iq:gateway"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
35 #define NS_LAST "jabber:iq:last"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
36 #define NS_ENVELOPE "jabber:x:envelope"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
37 #define NS_EXPIRE "jabber:x:expire"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
38 #define NS_XHTML "http://www.w3.org/1999/xhtml"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
39 #define NS_DISCO_INFO "http://jabber.org/protocol/disco#info"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
40 #define NS_DISCO_ITEMS "http://jabber.org/protocol/disco#items"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
41 #define NS_IQ_AUTH "http://jabber.org/features/iq-auth"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
42 #define NS_REGISTER_FEATURE "http://jabber.org/features/iq-register"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
43
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
44 #define NS_CAPS "http://jabber.org/protocol/caps"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
45 #define NS_CHATSTATES "http://jabber.org/protocol/chatstates"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
46 #define NS_COMMANDS "http://jabber.org/protocol/commands"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
47 #define NS_MUC "http://jabber.org/protocol/muc"
1908
e2def760c6d0 Introduce NS_MUC_{USER,ADMIN,OWNER}
Mikael Berthe <mikael@lilotux.net>
parents: 1811
diff changeset
48 #define NS_MUC_USER "http://jabber.org/protocol/muc#user"
e2def760c6d0 Introduce NS_MUC_{USER,ADMIN,OWNER}
Mikael Berthe <mikael@lilotux.net>
parents: 1811
diff changeset
49 #define NS_MUC_ADMIN "http://jabber.org/protocol/muc#admin"
e2def760c6d0 Introduce NS_MUC_{USER,ADMIN,OWNER}
Mikael Berthe <mikael@lilotux.net>
parents: 1811
diff changeset
50 #define NS_MUC_OWNER "http://jabber.org/protocol/muc#owner"
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
51
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
52 #define NS_XDBGINSERT "jabber:xdb:ginsert"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
53 #define NS_XDBNSLIST "jabber:xdb:nslist"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
54
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
55 #define NS_XMPP_STANZAS "urn:ietf:params:xml:ns:xmpp-stanzas"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
56 #define NS_XMPP_TLS "urn:ietf:params:xml:ns:xmpp-tls"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
57 #define NS_XMPP_STREAMS "urn:ietf:params:xml:ns:xmpp-streams"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
58
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
59 #define NS_XMPP_DELAY "urn:xmpp:delay"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
60 #define NS_XMPP_TIME "urn:xmpp:time"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
61 #define NS_PING "urn:xmpp:ping"
1602
f4a2c6f767d1 Message Receipts support (XEP-0184)
franky
parents: 1600
diff changeset
62 #define NS_RECEIPTS "urn:xmpp:receipts"
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
63
2111
9023a6f2bf6c Misc. style updates
Mikael Berthe <mikael@lilotux.net>
parents: 2103
diff changeset
64 #define NS_CARBONS_2 "urn:xmpp:carbons:2" // XEP-0280 (message carbons)
2167
634cc23e8c1c Use a #define for the xep-297 protocol namespace
franky
parents: 2111
diff changeset
65 #define NS_FORWARD "urn:xmpp:forward:0" // XEP-0297 (stanza forwarding)
2103
1210a22726d3 We can determine if the server supports carbons. By means of XEP-0030: Service
Roeland Jago Douma <roeland@famdouma.nl>
parents: 1951
diff changeset
66
1598
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
67 #define NS_JABBERD_STOREDPRESENCE "http://jabberd.org/ns/storedpresence"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
68 #define NS_JABBERD_HISTORY "http://jabberd.org/ns/history"
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
69
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
70 #define XMPP_ERROR_REDIRECT 302
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
71 #define XMPP_ERROR_BAD_REQUEST 400
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
72 #define XMPP_ERROR_NOT_AUTHORIZED 401
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
73 #define XMPP_ERROR_PAYMENT_REQUIRED 402
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
74 #define XMPP_ERROR_FORBIDDEN 403
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
75 #define XMPP_ERROR_NOT_FOUND 404
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
76 #define XMPP_ERROR_NOT_ALLOWED 405
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
77 #define XMPP_ERROR_NOT_ACCEPTABLE 406
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
78 #define XMPP_ERROR_REGISTRATION_REQUIRED 407
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
79 #define XMPP_ERROR_REQUEST_TIMEOUT 408
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
80 #define XMPP_ERROR_CONFLICT 409
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
81 #define XMPP_ERROR_INTERNAL_SERVER_ERROR 500
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
82 #define XMPP_ERROR_NOT_IMPLEMENTED 501
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
83 #define XMPP_ERROR_REMOTE_SERVER_ERROR 502
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
84 #define XMPP_ERROR_SERVICE_UNAVAILABLE 503
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
85 #define XMPP_ERROR_REMOTE_SERVER_TIMEOUT 504
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
86 #define XMPP_ERROR_DISCONNECTED 510
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
87
a087125d8fc8 Replace libjabber with loudmouth
franky
parents:
diff changeset
88 #endif
1599
dcd5d4c75199 Update/Add headers
Mikael Berthe <mikael@lilotux.net>
parents: 1598
diff changeset
89
1811
e6d355e50d7a Update Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 1668
diff changeset
90 /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */