25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Modify exmpp header lines to compile with ancient Erlang/OTP versions.

SVN Revision: 2516
This commit is contained in:
Badlop 2009-08-21 09:27:34 +00:00
parent 2a505d1d86
commit c8e7a4f4ac

View File

@ -47,37 +47,34 @@
%% Copied from exmpp header files: %% Copied from exmpp header files:
-define(NS_ROSTER, "jabber:iq:roster"). -define(NS_ROSTER, "jabber:iq:roster").
-define(NS_VCARD, "vcard-temp"). -define(NS_VCARD, "vcard-temp").
-type(xmlname() :: atom() | string()).
-record(xmlcdata, { -record(xmlcdata, {
cdata = <<>> :: binary() cdata = <<>>
}). }).
-type(xmlcdata() :: #xmlcdata{}).
-record(xmlattr, { -record(xmlattr, {
ns = undefined :: xmlname() | undefined, ns = undefined,
name :: xmlname(), name,
value :: binary() value
}). }).
-type(xmlattr() :: #xmlattr{}).
-record(xmlel, { -record(xmlel, {
ns = undefined :: xmlname() | undefined, ns = undefined,
declared_ns = [] :: [{xmlname(), string() | none}], declared_ns = [],
name :: xmlname(), name,
attrs = [] :: [xmlattr()], attrs = [],
children = [] :: [#xmlel{} | xmlcdata()] | undefined children = []
}). }).
-record(iq, { -record(iq, {
kind :: request | response, kind,
type :: get | set | result | error, type,
id :: binary() | undefined, id,
ns :: xmlname() | undefined, ns,
payload :: #xmlel{} | undefined, payload,
error :: #xmlel{} | undefined, error,
lang :: binary() | undefined, lang,
iq_ns :: xmlname() | undefined iq_ns
}). }).
-record(xmlendtag, { -record(xmlendtag, {
ns = undefined :: xmlname() | undefined, ns = undefined,
name :: xmlname() name
}). }).