mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 18:28:10 +09:00
match.c: Add function documentation for match_group()
Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
committed by
Sahana Prasad
parent
d41a0aaa13
commit
145222eef6
15
src/match.c
15
src/match.c
@@ -578,6 +578,21 @@ match_cidr_address_list(const char *address,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Tries to match an object against a comma separated group of objects
|
||||||
|
*
|
||||||
|
* The characters '*' and '?' are NOT considered wildcards and an object in the
|
||||||
|
* group preceded by a ! does NOT indicate negation. The characters '*', '?'
|
||||||
|
* and '!' are treated normally like other characters, only ',' (comma) is
|
||||||
|
* treated specially and is considered as a delimiter that separates objects in
|
||||||
|
* the group.
|
||||||
|
*
|
||||||
|
* @param[in] group Group of objects (comma separated) to match against.
|
||||||
|
*
|
||||||
|
* @param[in] object Object to match.
|
||||||
|
*
|
||||||
|
* @returns 1 if there is a match, 0 if there is no match at all.
|
||||||
|
*/
|
||||||
int match_group(const char *group, const char *object)
|
int match_group(const char *group, const char *object)
|
||||||
{
|
{
|
||||||
const char *a;
|
const char *a;
|
||||||
|
|||||||
Reference in New Issue
Block a user