Function

FwupdPluginpath_fnmatch

since: 1.8.2

Declaration [src]

gboolean
fu_path_fnmatch (
  const gchar* pattern,
  const gchar* str
)

Description [src]

Matches a string against a glob pattern.

Available since: 1.8.2

Parameters

pattern

Type: const gchar*

A glob pattern, e.g. *foo*

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.
str

Type: const gchar*

A string to match against the pattern, e.g. bazfoobar

The data is owned by the caller of the function.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if the string matched.