Navit SVN

/work/compile/navit/src/navit/support/glib/gquark.h

00001 /* GLIB - Library of useful routines for C programming
00002  * Copyright (C) 1995-1997  Peter Mattis, Spencer Kimball and Josh MacDonald
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Lesser General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Lesser General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Lesser General Public
00015  * License along with this library; if not, write to the
00016  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00017  * Boston, MA 02111-1307, USA.
00018  */
00019 
00020 /*
00021  * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
00022  * file for a list of people on the GLib Team.  See the ChangeLog
00023  * files for a list of changes.  These files are distributed with
00024  * GLib at ftp://ftp.gtk.org/pub/gtk/.
00025  */
00026 
00027 #if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
00028 #error "Only <glib.h> can be included directly."
00029 #endif
00030 
00031 #ifndef __G_QUARK_H__
00032 #define __G_QUARK_H__
00033 
00034 #include <glib/gtypes.h>
00035 
00036 G_BEGIN_DECLS
00037 
00038 typedef guint32 GQuark;
00039 
00040 /* Quarks (string<->id association)
00041  */
00042 GQuark                g_quark_try_string         (const gchar *string);
00043 GQuark                g_quark_from_static_string (const gchar *string);
00044 GQuark                g_quark_from_string        (const gchar *string);
00045 G_CONST_RETURN gchar* g_quark_to_string          (GQuark       quark) G_GNUC_CONST;
00046 
00047 G_CONST_RETURN gchar* g_intern_string            (const gchar *string);
00048 G_CONST_RETURN gchar* g_intern_static_string     (const gchar *string);
00049 
00050 G_END_DECLS
00051 
00052 #endif /* __G_QUARK_H__ */