summaryrefslogtreecommitdiff
path: root/src/glibext/glinecursor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-14 11:48:54 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-14 11:48:54 (GMT)
commitbea3337108fa5b59b8f6fdbe016d5ed6a6300bc6 (patch)
tree517abf46e76b2a6cc8ddb3ac2dec5ffacc28a128 /src/glibext/glinecursor.c
parente0af5dc9c01a5b9649c68ec63109ba98b6843329 (diff)
Begun to switch to abstract locations in internal rendering buffers.
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;
+
+}