XMMS2
Macros | Functions
resultset.c File Reference
#include <s4.h>
#include "s4_priv.h"
#include "logging.h"
#include <stdlib.h>
#include <glib.h>

Macros

#define ORDER_RAND_MIN   -1 /* closed bound */
 
#define ORDER_RAND_MAX   2 /* open bound */
 

Functions

void s4_resultset_add_row (s4_resultset_t *set, const s4_resultrow_t *row)
 Adds a row to a resultset. More...
 
int s4_resultset_get_row (const s4_resultset_t *set, int row_no, const s4_resultrow_t **row)
 Gets a row from a resultset. More...
 
const s4_result_ts4_resultset_get_result (const s4_resultset_t *set, int row, int col)
 Gets a result from a resultset. More...
 
int s4_resultset_get_colcount (const s4_resultset_t *set)
 Gets the column count for a resultset. More...
 
int s4_resultset_get_rowcount (const s4_resultset_t *set)
 Gets the row count for a resultset. More...
 
void s4_resultset_sort (s4_resultset_t *set, s4_order_t *order)
 Sorts a resultset. More...
 
void s4_resultset_shuffle (s4_resultset_t *set)
 Shuffles the resultset into a pseudo-random order. More...
 
void s4_resultset_free (s4_resultset_t *set)
 Frees a resultset and all the results in it. More...
 
s4_resultset_ts4_resultset_ref (s4_resultset_t *set)
 
void s4_resultset_unref (s4_resultset_t *set)
 
s4_resultrow_ts4_resultrow_create (int col_count)
 Creates a new row. More...
 
void s4_resultrow_set_col (s4_resultrow_t *row, int col_no, s4_result_t *col)
 Sets a column in a resultrow. More...
 
int s4_resultrow_get_col (const s4_resultrow_t *row, int col_no, const s4_result_t **col)
 Gets the value of a column in a resultrow. More...
 
s4_resultrow_ts4_resultrow_ref (s4_resultrow_t *row)
 References a resultrow. More...
 
void s4_resultrow_unref (s4_resultrow_t *row)
 Unreferences a resultrow. More...
 
s4_order_ts4_order_create (void)
 
s4_order_entry_ts4_order_add_column (s4_order_t *order, s4_cmp_mode_t collation, s4_order_direction_t direction)
 
s4_order_entry_ts4_order_add_random (s4_order_t *order, int seed)
 
void s4_order_entry_add_choice (s4_order_entry_t *entry, int column)
 
void s4_order_free (s4_order_t *order)
 
s4_resultset_ts4_resultset_create (int col_count)
 Creates a new resultset. More...
 

Macro Definition Documentation

#define ORDER_RAND_MAX   2 /* open bound */
#define ORDER_RAND_MIN   -1 /* closed bound */