}
};
-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,
}
/* FIXME: Need callback */
-int com_lsatt(int fd, int argc, const char **argv)
+int com_lsatt(int fd, int argc, char * const * const argv)
{
struct private_laa_data pld = {.fd = fd, .flags = 0};
int i;
return 1;
}
-int com_setatt(__a_unused int fd, int argc, const char **argv)
+int com_setatt(__a_unused int fd, int argc, char * const * const argv)
{
if (argc < 2)
return -E_ATTR_SYNTAX;
return mood_reload();
}
-int com_addatt(__a_unused int fd, int argc, const char **argv)
+int com_addatt(__a_unused int fd, int argc, char * const * const argv)
{
if (argc < 2)
return -E_ATTR_SYNTAX;
return mood_reload();
}
-int com_rmatt(__a_unused int fd, int argc, const char **argv)
+int com_rmatt(__a_unused int fd, int argc, char * const * const argv)
{
if (argc < 2)
return -E_ATTR_SYNTAX;
void attribute_shutdown(enum osl_close_flags flags)
{
osl_close_table(attribute_table, flags);
+ attribute_table = NULL;
}
-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 */