}
};
-static const struct osl_table_description attribute_table_desc = {
- .dir = DATABASE_DIR,
+static struct osl_table_description attribute_table_desc = {
.name = "attributes",
.num_columns = NUM_ATT_COLUMNS,
.flags = 0,
osl_close_table(attribute_table, flags);
}
-int attribute_init(struct table_info *ti)
+int attribute_init(struct table_info *ti, const char *db)
{
int ret;
+ attribute_table_desc.dir = db;
ti->desc = &attribute_table_desc;
ret = osl_open_table(ti->desc, &ti->table);
greatest_att_bitnum = -1; /* no atts available */