Updated Finnish translation
[rhythmbox.git] / rhythmdb / rb-refstring.h
blob7c1a7a3247ae1668b1d7dd846911657b3b4f33a3
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;
29 void rb_refstring_system_init (void);
30 void rb_refstring_system_shutdown (void);
32 RBRefString * rb_refstring_new (const char *init);
33 RBRefString * rb_refstring_find (const char *init);
35 RBRefString * rb_refstring_ref (RBRefString *val);
36 void rb_refstring_unref (RBRefString *val);
38 const char * rb_refstring_get (const RBRefString *val);
39 const char * rb_refstring_get_folded (RBRefString *val);
40 const char * rb_refstring_get_sort_key (RBRefString *val);
42 guint rb_refstring_hash (gconstpointer p);
43 gboolean rb_refstring_equal (gconstpointer ap, gconstpointer bp);
45 #endif