]> mj.ucw.cz Git - libucw.git/blobdiff - lib/object.h
I decided to turn off cf/url-equiv for indexation. however, after the indexer
[libucw.git] / lib / object.h
index c1a91798291492b6a8d38a64071f3bb92f9f2a16..99ff28263164aaa96b3eb6e3fc4b4698c03906bf 100644 (file)
@@ -10,8 +10,7 @@
 #ifndef _SHERLOCK_OBJECT_H
 #define _SHERLOCK_OBJECT_H
 
-/* FIXME: Buggy objects with long attributes still exist in old databases. Decrease to 1024 one day. */
-#define MAX_ATTR_SIZE 4096             /* Maximum length an attribute can ever have (including name and trailing 0) */
+#define MAX_ATTR_SIZE 1024             /* Maximum length an attribute can ever have (including name and trailing 0) */
 
 struct fastbuf;
 
@@ -41,5 +40,7 @@ struct oattr *obj_set_attr_num(struct odes *, uns, uns);
 struct oattr *obj_add_attr(struct odes *, uns, byte *);
 struct oattr *obj_prepend_attr(struct odes *, uns, byte *);
 struct oattr *obj_insert_attr(struct odes *o, struct oattr *first, struct oattr *after, byte *v);
+void obj_move_attr_to_head(struct odes *o, uns);
+void obj_move_attr_to_tail(struct odes *o, uns);
 
 #endif