From 11fd81d820ff321ebd09e9e3d3980bf24481607a Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Fri, 20 Aug 2004 09:39:00 +0000 Subject: [PATCH] - added b?get_attr() - added {get,put}_attr_set_type() --- lib/object.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/object.h b/lib/object.h index c889953b..fcd66dc0 100644 --- a/lib/object.h +++ b/lib/object.h @@ -46,8 +46,17 @@ void obj_move_attr_to_tail(struct odes *o, uns); /* buck2obj.c: Reading of objects from buckets */ +struct parsed_attr { + int attr; + byte *val; + uns len; +}; struct buck2obj_buf; +void get_attr_set_type(uns type); +int get_attr(byte **pos, byte *end, struct parsed_attr *attr); +int bget_attr(struct fastbuf *b, struct parsed_attr *attr); + struct buck2obj_buf *buck2obj_alloc(void); void buck2obj_free(struct buck2obj_buf *buf); @@ -64,7 +73,7 @@ int obj_read(struct fastbuf *, struct odes *); /* obj2buck.c: Generating buckets from objects */ -void attr_set_type(uns type); +void put_attr_set_type(uns type); uns size_attr(uns len); -- 2.39.2