aboutsummaryrefslogtreecommitdiff
path: root/include/mod_privacy.hrl
diff options
context:
space:
mode:
Diffstat (limited to 'include/mod_privacy.hrl')
-rw-r--r--include/mod_privacy.hrl21
1 files changed, 9 insertions, 12 deletions
diff --git a/include/mod_privacy.hrl b/include/mod_privacy.hrl
index 8fe5abcca..291970cce 100644
--- a/include/mod_privacy.hrl
+++ b/include/mod_privacy.hrl
@@ -1,6 +1,6 @@
%%%----------------------------------------------------------------------
%%%
-%%% ejabberd, Copyright (C) 2002-2016 ProcessOne
+%%% ejabberd, Copyright (C) 2002-2019 ProcessOne
%%%
%%% This program is free software; you can redistribute it and/or
%%% modify it under the terms of the GNU General Public License as
@@ -22,9 +22,11 @@
default = none :: none | binary(),
lists = [] :: [{binary(), [listitem()]}]}).
--record(listitem, {type = none :: none | jid | group | subscription,
- value = none :: none | both | from | to | ljid() | binary(),
- action = allow :: allow | deny,
+-type privacy() :: #privacy{}.
+
+-record(listitem, {type = none :: listitem_type(),
+ value = none :: listitem_value(),
+ action = allow :: listitem_action(),
order = 0 :: integer(),
match_all = false :: boolean(),
match_iq = false :: boolean(),
@@ -33,11 +35,6 @@
match_presence_out = false :: boolean()}).
-type listitem() :: #listitem{}.
-
--record(userlist, {name = none :: none | binary(),
- list = [] :: [listitem()],
- needdb = false :: boolean()}).
-
--type userlist() :: #userlist{}.
-
--export_type([userlist/0]).
+-type listitem_type() :: none | jid | group | subscription.
+-type listitem_value() :: none | both | from | to | jid:ljid() | binary().
+-type listitem_action() :: allow | deny.