static struct osl_column_description score_cols[] = {
[SCORECOL_AFT_ROW] = {
.storage_type = OSL_NO_STORAGE,
static struct osl_column_description score_cols[] = {
[SCORECOL_AFT_ROW] = {
.storage_type = OSL_NO_STORAGE,
.name = "aft_row",
.compare_function = ptr_compare,
.data_size = sizeof(void *)
.name = "aft_row",
.compare_function = ptr_compare,
.data_size = sizeof(void *)
size = score_table_desc.column_descriptions[SCORECOL_SCORE].data_size;
score_objs[SCORECOL_SCORE].data = para_malloc(size);
size = score_table_desc.column_descriptions[SCORECOL_SCORE].data_size;
score_objs[SCORECOL_SCORE].data = para_malloc(size);
ret = osl_add_row(score_table, score_objs);
if (ret < 0) {
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
ret = osl_add_row(score_table, score_objs);
if (ret < 0) {
PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
int ret = osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, &row);
if (ret < 0)
int ret = osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, &row);
if (ret < 0)
ret = osl_get_object(score_table, score_row, SCORECOL_AFT_ROW, &obj);
if (ret < 0)
return ret;
ret = osl_get_object(score_table, score_row, SCORECOL_AFT_ROW, &obj);
if (ret < 0)
return ret;
return 1;
}
static int get_score_row_from_aft_row(const struct osl_row *aft_row,
struct osl_row **score_row)
{
return 1;
}
static int get_score_row_from_aft_row(const struct osl_row *aft_row,
struct osl_row **score_row)
{
return osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, score_row);
}
return osl_get_row(score_table, SCORECOL_AFT_ROW, &obj, score_row);
}
ret = osl_get_object(score_table, row, SCORECOL_AFT_ROW, &obj);
if (ret < 0)
return ret;
ret = osl_get_object(score_table, row, SCORECOL_AFT_ROW, &obj);
if (ret < 0)
return ret;