return ret;
}
-static int com_lsblob(callback_function *f, int fd, int argc, const char **argv)
+static int com_lsblob(callback_function *f, int fd, int argc, char * const * const argv)
{
struct com_lsblob_options clbo = {.flags = 0};
struct osl_object query = {.data = &clbo, .size = sizeof(clbo)},
return osl_close_disk_object(&obj);
}
static int com_catblob(callback_function *f, int fd, int argc,
- const char **argv)
+ char * const * const argv)
{
struct osl_object cat_output = {.data = NULL};
int ret;
}
static int com_addblob(callback_function *f, __a_unused int fd, int argc,
- const char **argv)
+ char * const * const argv)
{
struct osl_object arg_obj;
}
static int com_rmblob(callback_function *f, __a_unused int fd, int argc,
- const char **argv)
+ char * const * const argv)
{
if (argc < 2)
return -E_MOOD_SYNTAX;
}
static int com_mvblob(callback_function *f, __a_unused int fd,
- int argc, const char **argv)
+ int argc, char * const * const argv)
{
if (argc != 3)
return -E_MOOD_SYNTAX;
{ \
return com_ ## cmd_name ## blob_callback(table_name ## _table, query, output); \
} \
- int com_ ## cmd_name ## cmd_prefix(__a_unused int fd, int argc, const char **argv) \
+ int com_ ## cmd_name ## cmd_prefix(int fd, int argc, char * const * const argv) \
{ \
return com_ ## cmd_name ## blob(com_ ## cmd_name ## cmd_prefix ## _callback, fd, argc, argv); \
}
}
static int blob_init(struct osl_table **table,
- const struct osl_table_description *desc,
- struct table_info *ti)
+ struct osl_table_description *desc,
+ struct table_info *ti, const char *db)
{
int ret;
-
+ desc->dir = db;
ti->desc = desc;
ret = osl_open_table(ti->desc, &ti->table);
if (ret >= 0) {
/** Define the \p init function for this blob type. */
#define DEFINE_BLOB_INIT(table_name) \
- int table_name ## _init(struct table_info *ti) \
+ int table_name ## _init(struct table_info *ti, const char *db) \
{ \
return blob_init(&table_name ## _table, \
- &table_name ## _table_desc, ti); \
+ &table_name ## _table_desc, ti, db); \
}