#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;
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