Function

WebKitWebExtensionMatchPatternnew_with_scheme

Declaration [src]

WebKitWebExtensionMatchPattern*
webkit_web_extension_match_pattern_new_with_scheme (
  const gchar* scheme,
  const gchar* host,
  const gchar* path,
  GError** error
)

Description [src]

Returns a new WebKitWebExtensionMatchPattern for the specified scheme, host, and path strings.

Available since:2.48

Parameters

scheme const gchar*
 

A pattern URL scheme.

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

A pattern URL host.

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

A pattern URL path.

 The data is owned by the caller of the function.
 The value is a NUL terminated UTF-8 string.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: WebKitWebExtensionMatchPattern
 

A newly created WebKitWebExtensionMatchPattern, or NULL if any of the pattern strings are invalid.

 The caller of the function takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.