gutils.h File Reference

API published in:
API deprecated in:


#include <_ansi.h>
#include <glib/gtypes.h>
#include <stdarg.h>

Go to the source code of this file.


Data Structures

struct   _GDebugKey
struct   _GTrashStack

Defines

#define  G_DIR_SEPARATOR   '/'
#define  G_DIR_SEPARATOR_S   "/"
#define  G_IS_DIR_SEPARATOR(c)   ((c) == G_DIR_SEPARATOR)
#define  G_SEARCHPATH_SEPARATOR   ':'
#define  G_SEARCHPATH_SEPARATOR_S   ":"
#define  G_VA_COPY(ap1, ap2)   ((ap1) = (ap2))
#define  inline
#define  G_INLINE_FUNC
#define  g_dirname   g_path_get_dirname
#define  ATEXIT(proc)   g_ATEXIT(proc)
#define  GLIB_CHECK_VERSION(major, minor, micro)
#define  G_WIN32_DLLMAIN_FOR_DLL_NAME(static, dll_name)

Typedefs

typedef _GDebugKey  GDebugKey
typedef void(*  GVoidFunc )(void)
typedef _GTrashStack  GTrashStack

Functions

IMPORT_C G_CONST_RETURN gchar g_get_user_name (void)
IMPORT_C G_CONST_RETURN gchar g_get_real_name (void)
IMPORT_C G_CONST_RETURN gchar g_get_home_dir (void)
IMPORT_C G_CONST_RETURN gchar g_get_tmp_dir (void)
IMPORT_C G_CONST_RETURN gchar g_get_host_name (void)
IMPORT_C gchar g_get_prgname (void)
IMPORT_C void  g_set_prgname (const gchar *prgname)
IMPORT_C G_CONST_RETURN gchar g_get_application_name (void)
IMPORT_C void  g_set_application_name (const gchar *application_name)
IMPORT_C G_CONST_RETURN gchar g_get_user_data_dir (void)
IMPORT_C G_CONST_RETURN gchar g_get_user_config_dir (void)
IMPORT_C G_CONST_RETURN gchar g_get_user_cache_dir (void)
IMPORT_C G_CONST_RETURN gchar
*G_CONST_RETURN * 
g_get_system_data_dirs (void)
IMPORT_C G_CONST_RETURN gchar
*G_CONST_RETURN * 
g_get_system_config_dirs (void)
IMPORT_C G_CONST_RETURN gchar
*G_CONST_RETURN * 
g_get_language_names (void)
IMPORT_C guint  g_parse_debug_string (const gchar *string, const GDebugKey *keys, guint nkeys)
IMPORT_C gint  g_snprintf (gchar *string, gulong n, gchar const *format,...) G_GNUC_PRINTF(3
IMPORT_C gint IMPORT_C gint  g_vsnprintf (gchar *string, gulong n, gchar const *format, va_list args)
IMPORT_C gboolean  g_path_is_absolute (const gchar *file_name)
IMPORT_C G_CONST_RETURN gchar g_path_skip_root (const gchar *file_name)
IMPORT_C G_CONST_RETURN gchar g_basename (const gchar *file_name)
IMPORT_C gchar g_get_current_dir (void)
IMPORT_C gchar g_path_get_basename (const gchar *file_name) G_GNUC_MALLOC
IMPORT_C gchar g_path_get_dirname (const gchar *file_name) G_GNUC_MALLOC
IMPORT_C void  g_nullify_pointer (gpointer *nullify_location)
IMPORT_C G_CONST_RETURN gchar g_getenv (const gchar *variable)
IMPORT_C gboolean  g_setenv (const gchar *variable, const gchar *value, gboolean overwrite)
IMPORT_C void  g_unsetenv (const gchar *variable)
IMPORT_C gchar **  g_listenv (void)
const gchar _g_getenv_nomalloc (const gchar *variable, gchar buffer[1024])
IMPORT_C void  g_atexit (GVoidFunc func)
IMPORT_C gchar g_find_program_in_path (const gchar *program)
gint  g_bit_nth_lsf (gulong mask, gint nth_bit)
gint  g_bit_nth_msf (gulong mask, gint nth_bit)
guint  g_bit_storage (gulong number)
void  g_trash_stack_push (GTrashStack **stack_p, gpointer data_p)
gpointer  g_trash_stack_pop (GTrashStack **stack_p)
gpointer  g_trash_stack_peek (GTrashStack **stack_p)
guint  g_trash_stack_height (GTrashStack **stack_p)
IMPORT_C const gchar glib_check_version (guint required_major, guint required_minor, guint required_micro)

Variables

GLIB_VAR const guint  glib_major_version
GLIB_VAR const guint  glib_minor_version
GLIB_VAR const guint  glib_micro_version
GLIB_VAR const guint  glib_interface_age
GLIB_VAR const guint  glib_binary_age

Define Documentation

#define ATEXIT proc   )     g_ATEXIT(proc)
 
#define G_DIR_SEPARATOR   '/'
 
#define G_DIR_SEPARATOR_S   "/"
 
#define g_dirname   g_path_get_dirname
 
#define G_INLINE_FUNC
 
#define G_IS_DIR_SEPARATOR  )     ((c) == G_DIR_SEPARATOR)
 
#define G_SEARCHPATH_SEPARATOR   ':'
 
#define G_SEARCHPATH_SEPARATOR_S   ":"
 
#define G_VA_COPY ap1,
ap2   )     ((ap1) = (ap2))
 
#define G_WIN32_DLLMAIN_FOR_DLL_NAME static,
dll_name   ) 
 
#define GLIB_CHECK_VERSION major,
minor,
micro   ) 
 

Value:

(GLIB_MAJOR_VERSION > (major) || \
     (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION > (minor)) || \
     (GLIB_MAJOR_VERSION == (major) && GLIB_MINOR_VERSION == (minor) && \
      GLIB_MICRO_VERSION >= (micro)))
#define inline
 

Typedef Documentation

typedef struct _GDebugKey GDebugKey
 
typedef struct _GTrashStack GTrashStack
 
typedef void(* GVoidFunc)(void)
 

Function Documentation

const gchar* _g_getenv_nomalloc const gchar variable,
gchar  buffer[1024]
 
IMPORT_C void g_atexit GVoidFunc  func  ) 
 
IMPORT_C G_CONST_RETURN gchar* g_basename const gchar file_name  ) 
 
gint g_bit_nth_lsf gulong  mask,
gint  nth_bit
 
gint g_bit_nth_msf gulong  mask,
gint  nth_bit
 
guint g_bit_storage gulong  number  ) 
 
IMPORT_C gchar* g_find_program_in_path const gchar program  ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_application_name void   ) 
 
IMPORT_C gchar* g_get_current_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_home_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_host_name void   ) 
 
IMPORT_C G_CONST_RETURN gchar* G_CONST_RETURN* g_get_language_names void   ) 
 
IMPORT_C gchar* g_get_prgname void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_real_name void   ) 
 
IMPORT_C G_CONST_RETURN gchar* G_CONST_RETURN* g_get_system_config_dirs void   ) 
 
IMPORT_C G_CONST_RETURN gchar* G_CONST_RETURN* g_get_system_data_dirs void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_tmp_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_user_cache_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_user_config_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_user_data_dir void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_get_user_name void   ) 
 
IMPORT_C G_CONST_RETURN gchar* g_getenv const gchar variable  ) 
 
IMPORT_C gchar** g_listenv void   ) 
 
IMPORT_C void g_nullify_pointer gpointer nullify_location  ) 
 
IMPORT_C guint g_parse_debug_string const gchar string,
const GDebugKey keys,
guint  nkeys
 
IMPORT_C gchar* g_path_get_basename const gchar file_name  ) 
 
IMPORT_C gchar* g_path_get_dirname const gchar file_name  ) 
 
IMPORT_C gboolean g_path_is_absolute const gchar file_name  ) 
 
IMPORT_C G_CONST_RETURN gchar* g_path_skip_root const gchar file_name  ) 
 
IMPORT_C void g_set_application_name const gchar application_name  ) 
 
IMPORT_C void g_set_prgname const gchar prgname  ) 
 
IMPORT_C gboolean g_setenv const gchar variable,
const gchar value,
gboolean  overwrite
 
IMPORT_C gint g_snprintf gchar string,
gulong  n,
gchar const *  format,
  ...
 
guint g_trash_stack_height GTrashStack **  stack_p  ) 
 
gpointer g_trash_stack_peek GTrashStack **  stack_p  ) 
 
gpointer g_trash_stack_pop GTrashStack **  stack_p  ) 
 
void g_trash_stack_push GTrashStack **  stack_p,
gpointer  data_p
 
IMPORT_C void g_unsetenv const gchar variable  ) 
 
IMPORT_C gint IMPORT_C gint g_vsnprintf gchar string,
gulong  n,
gchar const *  format,
va_list  args
 
IMPORT_C const gchar* glib_check_version guint  required_major,
guint  required_minor,
guint  required_micro
 

Variable Documentation

GLIB_VAR const guint glib_binary_age
 
GLIB_VAR const guint glib_interface_age
 
GLIB_VAR const guint glib_major_version
 
GLIB_VAR const guint glib_micro_version
 
GLIB_VAR const guint glib_minor_version
 

Copyright © Nokia Corporation 2001-2008
Back to top