diff options
author | Michael Vetter <jubalh@iodoru.org> | 2023-04-18 14:43:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 14:43:01 +0200 |
commit | 4933d4e4f3d1cc8ee308c1bb6bfc4c13ec64ac57 (patch) | |
tree | 1fed6ab534a857572c0732fe5c9dad73af4617dd /src/xmpp/connection.c | |
parent | f51dc019bc08e41fa4564d465136522648a7a663 (diff) | |
parent | bed5c02c0dde0fe3cd8eb6018322a78b4441e22a (diff) | |
download | profani-tty-4933d4e4f3d1cc8ee308c1bb6bfc4c13ec64ac57.tar.gz |
Merge pull request #1827 from H3rnand3zzz/feature/sessions-alarm
New Feature: Session Alarm
Diffstat (limited to 'src/xmpp/connection.c')
-rw-r--r-- | src/xmpp/connection.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xmpp/connection.c b/src/xmpp/connection.c index 9c398c73..eef395f1 100644 --- a/src/xmpp/connection.c +++ b/src/xmpp/connection.c @@ -776,6 +776,12 @@ connection_get_available_resources(void) return g_hash_table_get_values(conn.available_resources); } +int +connection_count_available_resources(void) +{ + return g_hash_table_size(conn.available_resources); +} + void connection_add_available_resource(Resource* resource) { |