diff options
| author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-01-13 12:03:39 +0300 |
|---|---|---|
| committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-01-13 12:03:39 +0300 |
| commit | 0baaad30b176aa8b1d1d485fb8e113eb13d2bdf3 (patch) | |
| tree | b5186d78d598e9b94f26646ef11e8c24ac1edd7c /include | |
| parent | Fix some corner cases while re-reading RFC6120 (diff) | |
Implement database backend interface for MUC, BOSH and auth_anonyous
Diffstat (limited to 'include')
| -rw-r--r-- | include/ejabberd_router.hrl | 6 | ||||
| -rw-r--r-- | include/mod_muc.hrl | 14 | ||||
| -rw-r--r-- | include/mod_muc_room.hrl | 7 |
3 files changed, 15 insertions, 12 deletions
diff --git a/include/ejabberd_router.hrl b/include/ejabberd_router.hrl new file mode 100644 index 000000000..8de23c4c7 --- /dev/null +++ b/include/ejabberd_router.hrl @@ -0,0 +1,6 @@ +-type local_hint() :: undefined | integer() | {apply, atom(), atom()}. + +-record(route, {domain :: binary(), + server_host :: binary(), + pid :: undefined | pid(), + local_hint :: local_hint()}). diff --git a/include/mod_muc.hrl b/include/mod_muc.hrl index 8d0c1b09d..b2cdb9544 100644 --- a/include/mod_muc.hrl +++ b/include/mod_muc.hrl @@ -23,11 +23,15 @@ {'_', binary()}, opts = [] :: list() | '_'}). --record(muc_online_room, - {name_host = {<<"">>, <<"">>} :: {binary(), binary()} | '$1' | - {'_', binary()} | '_', - pid = self() :: pid() | '$2' | '_' | '$1'}). - -record(muc_registered, {us_host = {{<<"">>, <<"">>}, <<"">>} :: {{binary(), binary()}, binary()} | '$1', nick = <<"">> :: binary()}). + +-record(muc_online_room, + {name_host :: {binary(), binary()} | '$1' | {'_', binary()} | '_', + pid :: pid() | '$2' | '_' | '$1'}). + +-record(muc_online_users, {us :: {binary(), binary()}, + resource :: binary() | '_', + room :: binary() | '_' | '$1', + host :: binary() | '_' | '$2'}). diff --git a/include/mod_muc_room.hrl b/include/mod_muc_room.hrl index dd414a8d8..4fbd1466e 100644 --- a/include/mod_muc_room.hrl +++ b/include/mod_muc_room.hrl @@ -120,10 +120,3 @@ room_shaper = none :: shaper:shaper(), room_queue = queue:new() :: ?TQUEUE }). - --record(muc_online_users, {us = {<<>>, <<>>} :: {binary(), binary()}, - resource = <<>> :: binary() | '_', - room = <<>> :: binary() | '_' | '$1', - host = <<>> :: binary() | '_' | '$2'}). - --type muc_online_users() :: #muc_online_users{}. |
