Add a note about g_strreverse() and UTF-8.
[platform/upstream/glib.git] / glib / gcompletion.h
index 5af9475..eab0699 100644 (file)
@@ -27,7 +27,7 @@
 #ifndef __G_COMPLETION_H__
 #define __G_COMPLETION_H__
 
-#include <glist.h>
+#include <glib/glist.h>
 
 G_BEGIN_DECLS
 
@@ -38,6 +38,10 @@ typedef gchar*          (*GCompletionFunc)      (gpointer);
 /* GCompletion
  */
 
+typedef gint (*GCompletionStrncmpFunc) (const gchar *s1,
+                                       const gchar *s2,
+                                       gsize        n);
+
 struct _GCompletion
 {
   GList* items;
@@ -45,6 +49,7 @@ struct _GCompletion
  
   gchar* prefix;
   GList* cache;
+  GCompletionStrncmpFunc strncmp_func;
 };
 
 GCompletion* g_completion_new          (GCompletionFunc func);
@@ -56,6 +61,8 @@ void         g_completion_clear_items  (GCompletion*    cmp);
 GList*       g_completion_complete     (GCompletion*    cmp,
                                         gchar*          prefix,
                                         gchar**         new_prefix);
+void         g_completion_set_compare (GCompletion *cmp,
+                                      GCompletionStrncmpFunc strncmp_func);
 void         g_completion_free         (GCompletion*    cmp);
 
 G_END_DECLS