Updated Macedonian Translation <arangela@cvs.gnome.org>
[rhythmbox.git] / rhythmdb / rb-refstring.h
blob35d6b6a70a8bf4ec6189121cce932548ce40ad07
1 /*
2 * arch-tag: Header for reference-counted string functions
4 * Copyright (C) 2004 Colin Walters <walters@verbum.org>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include <glib.h>
24 #ifndef __RB_REFSTRING_H
25 #define __RB_REFSTRING_H
27 typedef struct RBRefString RBRefString;
30 void rb_refstring_system_init (void);
31 void rb_refstring_system_shutdown (void);
33 RBRefString * rb_refstring_new (const char *init);
35 RBRefString * rb_refstring_ref (RBRefString *val);
36 void rb_refstring_unref (RBRefString *val);
39 const char * rb_refstring_get (const RBRefString *val);
40 const char * rb_refstring_get_folded (RBRefString *val);
41 const char * rb_refstring_get_sort_key (RBRefString *val);
43 guint rb_refstring_hash (gconstpointer p);
44 gboolean rb_refstring_equal (gconstpointer ap, gconstpointer bp);
46 #endif