Function

AppStreamutils_is_tld

Declaration [src]

gboolean
as_utils_is_tld (
  const gchar* tld
)

Description [src]

Searches the known list of TLDs we allow for AppStream IDs. This excludes internationalized names.

Available since:0.9.8

Parameters

tld const gchar*
 

A top-level domain without dot, e.g. “de”, “org”, “name”

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

Return value

Returns: gboolean
 

TRUE if the TLD is valid.