Function

ECalUtilUriNeedsChangeFunc

since: 3.62.2

Declaration

gboolean
(* ECalUtilUriNeedsChangeFunc) (
  const gchar* in_uri,
  gchar** out_uri,
  gpointer user_data
)

Description [src]

Called for each attachment URI, to check the in_uri whether it needs to be replaced. The “file://” URI-s which need to replace will be changed to “xfile://” by the caller, unless the out_uri is populated, in which case the out_uri is used instead.

Available since: 3.62.2

Parameters

in_uri

Type: const gchar*

A URI to check.

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

Type: gchar**

An out variable to optionally set a replacement URI for the in_uri.

The argument will be set by the function.
The argument can be set to NULL by the function.
The caller of the function takes ownership of the returned data, and is responsible for freeing it.
The value is a NUL terminated UTF-8 string.
user_data

Type: gpointer

User data passed to the e_cal_util_sanitize_untrusted_full().

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: gboolean

TRUE, when the in_uri needs to be changed, or FALSE, when it should stay as is.