summaryrefslogtreecommitdiff
path: root/src/glibext/glinecursor.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/glinecursor.c')
-rw-r--r--src/glibext/glinecursor.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/glibext/glinecursor.c b/src/glibext/glinecursor.c
index 8ad24bd..52cadea 100644
--- a/src/glibext/glinecursor.c
+++ b/src/glibext/glinecursor.c
@@ -24,6 +24,9 @@
#include "glinecursor.h"
+#include <assert.h>
+
+
#include "glinecursor-int.h"
@@ -124,3 +127,29 @@ static void g_line_cursor_finalize(GLineCursor *cursor)
G_OBJECT_CLASS(g_line_cursor_parent_class)->finalize(G_OBJECT(cursor));
}
+
+
+/******************************************************************************
+* *
+* Paramètres : cursor = premier suivi d'emplacement à comparer. *
+* other = second suivi d'emplacement à comparer. *
+* *
+* Description : Compare deux suivis d'emplacements. *
+* *
+* Retour : Bilan de la comparaison. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+int g_line_cursor_compare(const GLineCursor *cursor, const GLineCursor *other)
+{
+ int result; /* Bilan à renvoyer */
+
+ assert(G_OBJECT_TYPE(cursor) == G_OBJECT_TYPE(other));
+
+ result = G_LINE_CURSOR_GET_CLASS(cursor)->compare(cursor, other);
+
+ return result;
+
+}