OpenVAS Libraries  6.0+beta5
Functions
hash_table_util.h File Reference
#include "glib.h"

Go to the source code of this file.

Functions

GSList * keys_as_string_list (GHashTable *hash_table, GCompareFunc cmp_func)
 Returns a list of keys (assumed to be strings) of a given GHashTable. More...
 

Function Documentation

GSList* keys_as_string_list ( GHashTable *  hash_table,
GCompareFunc  cmp_func 
)

Returns a list of keys (assumed to be strings) of a given GHashTable.

that is optionally sorted.

Todo:
Note that with GLib 2.14 this function is obsolete, as Glib 2.14 defines g_hash_table_get_keys ().
Parameters
hash_tableThe GHashTable whose keys to return.
cmp_func(can be NULL) String comparison function if the returned list shall be sorted.
Returns
A GSList containing pointers to the keys of the given GHashTable.