Virtual Method

IdeVcsClonervalidate_uri

Declaration

gboolean
validate_uri (
  IdeVcsCloner* self,
  const char* uri,
  char** errmsg
)

Description

Checks to see if uri is valid, and if not, sets errmsg to a string describing how the URI is invalid.

Parameters

uri

Type: const char*

A string containing the URI to validate.

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

Type: char**

A location for an error message.

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

Return value

Type: gboolean

TRUE if uri is valid, otherwise FALSE and error is set.