| Top |
Functions
Functions
GOMapFunc ()
gpointer
(*GOMapFunc) (gpointer value);
GOMapFunc is deprecated and should not be used in newly-written code.
GOParseKeyValueFunc ()
gboolean (*GOParseKeyValueFunc) (const char *name,const char *value,GError **err,gpointer user);
go_destroy_password ()
void
go_destroy_password (char *passwd);
Overwrite a string holding a password. This is a separate routine to ensure that the compiler does not try to outsmart us.
Note: this does not free the memory.
go_guess_encoding ()
char const * go_guess_encoding (char const *raw,gsize len,char const *user_guess,GString **utf8_str,guint *truncated);
go_hash_keys ()
GSList *
go_hash_keys (GHashTable *hash);
Collects an unordered list of the keys in hash
.
go_list_index_custom ()
gint go_list_index_custom (GList *list,gpointer data,GCompareFunc cmp_func);
Searched for data
in list
and return the corresponding index or -1 if not
found.
go_mem_chunk_foreach_leak ()
void go_mem_chunk_foreach_leak (GOMemChunk *chunk,GFunc cb,gpointer user);
Loop over all non-freed memory in the chunk. It's safe to allocate or free from the chunk in the callback.
go_mem_chunk_free ()
void go_mem_chunk_free (GOMemChunk *chunk,gpointer mem);
Returns the given item to the pool.
go_mem_chunk_new ()
GOMemChunk * go_mem_chunk_new (char const *name,gsize user_atom_size,gsize chunk_size);
go_object_properties_apply ()
void go_object_properties_apply (GObject *obj,GSList *props,gboolean changed_only);
Sets a list of properties for obj
. The list needs to be a list of
alternating GParamSpec and GValue.
go_object_properties_collect ()
GSList *
go_object_properties_collect (GObject *obj);
Collect all rw properties and their values.
go_object_properties_free ()
void
go_object_properties_free (GSList *props);
Unsezts the values in the list which needs to be a list of alternating GParamSpec and GValue.
go_object_set_property ()
gboolean go_object_set_property (GObject *obj,const char *property_name,const char *user_prop_name,const char *value,GError **err,const char *error_template);
go_object_toggle ()
void go_object_toggle (gpointer object,const gchar *property_name);
Toggle a boolean object property.
go_parse_key_value ()
gboolean go_parse_key_value (const char *options,GError **err,GOParseKeyValueFunc handler,gpointer user);
go_ptr_array_insert ()
void go_ptr_array_insert (GPtrArray *array,gpointer value,int index);
go_ptr_array_insert is deprecated and should not be used in newly-written code.
Inserts a pointer inside an existing array.
Note: consider using g_ptr_array_insert instead, but watch out of the argument order.
go_slist_create ()
GSList * go_slist_create (gconstpointer item1,...);
Creates a GList from NULL-terminated list of arguments. As the arguments are just copied to the list, the caller owns them.
go_slist_map ()
GSList * go_slist_map (GSList const *list,GOMapFunc map_func);
go_slist_map is deprecated and should not be used in newly-written code.
The ownership of the list elements depends on map_func.
go_string_replace ()
void go_string_replace (GString *target,gsize pos,gssize oldlen,const char *txt,gssize newlen);
go_string_slist_copy()
#define go_string_slist_copy(list) g_slist_copy_deep (list, (GCopyFunc)g_strdup, NULL)
go_strsplit_to_slist ()
GSList * go_strsplit_to_slist (char const *str,gchar delimiter);
Splits up string into tokens at delim and returns a string list.
