X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=lib%2Fsilcclient%2Fidlist.c;h=ea45f108a4582cf3a9a0d394cb5eecb43c5bacce;hb=afca12dad0ef6623a983bdcc10b6f7ff7364edae;hp=671b7797eba515c18c2072c8be08cee3f4a3e9fb;hpb=e2eb538f0fa5941187f38c99a90cb7dcbaf66e92;p=silc.git diff --git a/lib/silcclient/idlist.c b/lib/silcclient/idlist.c index 671b7797..ea45f108 100644 --- a/lib/silcclient/idlist.c +++ b/lib/silcclient/idlist.c @@ -517,6 +517,25 @@ void silc_client_get_client_by_id_resolve(SilcClient client, (void *)i); } +/* Removes client from the cache by the client entry. */ + +bool silc_client_del_client(SilcClient client, SilcClientConnection conn, + SilcClientEntry client_entry) +{ + return silc_idcache_del_by_context(conn->client_cache, client_entry); +} + +/* Removes client from the cache by the client ID. */ + +bool silc_client_del_client_by_id(SilcClient client, + SilcClientConnection conn, + SilcClientID *client_id) +{ + return silc_idcache_del_by_id_ext(conn->client_cache, (void *)client_id, + NULL, NULL, + silc_hash_client_id_compare, NULL); +} + /* Finds entry for channel by the channel name. Returns the entry or NULL if the entry was not found. It is found only if the client is joined to the channel. */