XMMS2
Macros | Functions
xmms_utils.h File Reference
#include <xmmsc/xmmsc_compiler.h>

Macros

#define XMMS_BUILD_PATH(...)   xmms_build_path (__VA_ARGS__, NULL)
 

Functions

char * xmms_build_path (const char *name,...)
 Build path to file in xmms2 configuration directory. More...
 
gint xmms_natcmp_len (const gchar *str1, gint len1, const gchar *str2, gint len2)
 
gint xmms_natcmp (const gchar *str1, const gchar *str2)
 
gboolean xmms_strcase_equal (gconstpointer v1, gconstpointer v2)
 Case insensitive version of g_str_equal. More...
 
guint xmms_strcase_hash (gconstpointer v)
 Case insensitive version of g_str_hash. More...
 

Macro Definition Documentation

#define XMMS_BUILD_PATH (   ...)    xmms_build_path (__VA_ARGS__, NULL)

Function Documentation

char* xmms_build_path ( const char *  first,
  ... 
)

Build path to file in xmms2 configuration directory.

Parameters
firstThe first file or directory name in the path.
...Additional file/directory names.
Returns
Absolute path to a file or directory.
gint xmms_natcmp ( const gchar *  str1,
const gchar *  str2 
)
gint xmms_natcmp_len ( const gchar *  str1,
gint  len1,
const gchar *  str2,
gint  len2 
)

Referenced by xmms_natcmp().

gboolean xmms_strcase_equal ( gconstpointer  v1,
gconstpointer  v2 
)

Case insensitive version of g_str_equal.

Parameters
v1first string
v2second string
Returns
TRUE if first string equals the seconds tring, otherwise FALSE

Referenced by xmms_metadata_mapper_init().

guint xmms_strcase_hash ( gconstpointer  v)

Case insensitive version of g_str_hash.

Parameters
va string
Returns
the case insensitive hash code of the string

Referenced by xmms_metadata_mapper_init().