mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Modify exmpp header lines to compile with ancient Erlang/OTP versions.
SVN Revision: 2516
This commit is contained in:
parent
2a505d1d86
commit
c8e7a4f4ac
@ -47,37 +47,34 @@
|
||||
%% Copied from exmpp header files:
|
||||
-define(NS_ROSTER, "jabber:iq:roster").
|
||||
-define(NS_VCARD, "vcard-temp").
|
||||
-type(xmlname() :: atom() | string()).
|
||||
-record(xmlcdata, {
|
||||
cdata = <<>> :: binary()
|
||||
cdata = <<>>
|
||||
}).
|
||||
-type(xmlcdata() :: #xmlcdata{}).
|
||||
-record(xmlattr, {
|
||||
ns = undefined :: xmlname() | undefined,
|
||||
name :: xmlname(),
|
||||
value :: binary()
|
||||
ns = undefined,
|
||||
name,
|
||||
value
|
||||
}).
|
||||
-type(xmlattr() :: #xmlattr{}).
|
||||
-record(xmlel, {
|
||||
ns = undefined :: xmlname() | undefined,
|
||||
declared_ns = [] :: [{xmlname(), string() | none}],
|
||||
name :: xmlname(),
|
||||
attrs = [] :: [xmlattr()],
|
||||
children = [] :: [#xmlel{} | xmlcdata()] | undefined
|
||||
ns = undefined,
|
||||
declared_ns = [],
|
||||
name,
|
||||
attrs = [],
|
||||
children = []
|
||||
}).
|
||||
-record(iq, {
|
||||
kind :: request | response,
|
||||
type :: get | set | result | error,
|
||||
id :: binary() | undefined,
|
||||
ns :: xmlname() | undefined,
|
||||
payload :: #xmlel{} | undefined,
|
||||
error :: #xmlel{} | undefined,
|
||||
lang :: binary() | undefined,
|
||||
iq_ns :: xmlname() | undefined
|
||||
kind,
|
||||
type,
|
||||
id,
|
||||
ns,
|
||||
payload,
|
||||
error,
|
||||
lang,
|
||||
iq_ns
|
||||
}).
|
||||
-record(xmlendtag, {
|
||||
ns = undefined :: xmlname() | undefined,
|
||||
name :: xmlname()
|
||||
ns = undefined,
|
||||
name
|
||||
}).
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user