Function for moving an xref in a list.
authorPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 12 Jan 2003 20:00:49 +0000 (20:00 +0000)
committerPeter Verthez <Peter.Verthez@advalvas.be>
Sun, 12 Jan 2003 20:00:49 +0000 (20:00 +0000)
include/gom.h

index 12352734604c2e07dee5b4e1bc8d50b44704ac78..fbc5e39855759e58deaf90fa90499a02618f5ca5 100644 (file)
@@ -476,9 +476,16 @@ char* gom_get_string_for_locale(char* data, int* conversion_failures);
 char* gom_set_string_for_locale(char** data, const char* locale_str);
 void  gom_set_unknown(const char* unknown);
 
+typedef enum _DIR {
+  MOVE_UP,
+  MOVE_DOWN
+} Gom_direction;
+  
 struct xref_value* gom_set_xref(struct xref_value** data, const char* xref);
 struct xref_list*  gom_add_xref(struct xref_list** data, const char* xref);
 int                gom_remove_xref(struct xref_list** data, const char* xref);
+int                gom_move_xref(Gom_direction dir, struct xref_list** data,
+                                const char* xref);
 
 struct address*    gom_set_new_address(struct address** obj);
 int                gom_delete_address(struct address** obj);