]> granicus.if.org Git - ejabberd/commitdiff
Add missing -callbacks
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 24 Nov 2016 11:44:09 +0000 (12:44 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 24 Nov 2016 11:44:21 +0000 (12:44 +0100)
rebar.config
src/mod_muc_room.erl

index 929c15304f3bbbd46b87ec148f617f5f196ca553..11249e822d9d97b00a6c4fedf4931720f6e15a78 100644 (file)
@@ -64,7 +64,7 @@
                   ezlib,
                   iconv]}}.
 
-{erl_first_files, ["src/ejabberd_config.erl", "src/gen_mod.erl"]}.
+{erl_first_files, ["src/ejabberd_config.erl", "src/gen_mod.erl", "src/mod_muc_room.erl"]}.
 
 {erl_opts, [nowarn_deprecated_function,
             {i, "include"},
index 5b000548a131ab6fc22a1ed7c103548a7ecc1679..aa1c77aadf077fa100ac9aa89d1a4b9eb5834d16 100644 (file)
 
 -export_type([state/0]).
 
+-callback set_affiliation(binary(), binary(), binary(), jid(), affiliation(),
+                         binary()) -> ok | {error, any()}.
+-callback set_affiliations(binary(), binary(), binary(),
+                          ?TDICT) -> ok | {error, any()}.
+-callback get_affiliation(binary(), binary(), binary(),
+                         binary(), binary()) -> {ok, affiliation()} | {error, any()}.
+-callback get_affiliations(binary(), binary(), binary()) -> {ok, ?TDICT} | {error, any()}.
+-callback search_affiliation(binary(), binary(), binary(), affiliation()) ->
+    {ok, [{ljid(), {affiliation(), binary()}}]} | {error, any()}.
+
 %%%----------------------------------------------------------------------
 %%% API
 %%%----------------------------------------------------------------------