Utilities

Description

Helper and utilities functions

flu_stream_list_free ()

void flu_stream_list_free (GList *l);

Frees a list of streams

Parameters

l

The list of streams to free

flu_bookmark_list_free ()

void flu_bookmark_list_free (GList *l);

Frees a list of bookmarks

Parameters

l

The list of bookmarks to free

flu_free ()

void flu_free (gpointer ptr);

Frees a pointer

Parameters

ptr

The pointer to free Use this for methods where the library allocated the memory, like flu_stream_text_pango_get() or flu_stream_text_plain_get(), etc

flu_screen_saver_enable ()

void flu_screen_saver_enable (gboolean enable);

Enables or disables the screen saver

Parameters

enable

TRUE to enable the screen saver, FALSE to disable it

Returns

A statically-allocated state name

flu_uri_is_valid ()

gboolean flu_uri_is_valid (const gchar *uri);

Checks if an URI is valid

Parameters

uri

The URI to validate

Returns

TRUE if the URI is valid, FALSE otherwise

flu_uri_from_filename ()

gchar * flu_uri_from_filename (const gchar *filename);

Creates an URI string from a filename

Parameters

filename

The filename to convert to an URI

Returns

The newly allocated URI. Use g_free() to free it

Types and Values