XMMS2
Enumerations | Functions
cond.c File Reference
#include "s4_priv.h"
#include "logging.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

Enumerations

enum  s4_cond_type_t { S4_COND_COMBINER, S4_COND_FILTER }
 

Functions

s4_condition_ts4_cond_new_combiner (s4_combine_type_t type)
 Creates a new combiner. More...
 
s4_condition_ts4_cond_new_custom_combiner (combine_function_t func)
 Creates a new combiner with a user specified combiner function. More...
 
void s4_cond_add_operand (s4_condition_t *cond, s4_condition_t *operand)
 Adds and references an operand to a combiner condition. More...
 
s4_condition_ts4_cond_get_operand (s4_condition_t *cond, int operand)
 Gets an operand from a combiner condition. More...
 
s4_condition_ts4_cond_new_filter (s4_filter_type_t type, const char *key, const s4_val_t *value, s4_sourcepref_t *sourcepref, s4_cmp_mode_t cmp_mode, int flags)
 Creates a new filter condition. More...
 
s4_condition_ts4_cond_new_custom_filter (filter_function_t func, void *userdata, free_func_t free, const char *key, s4_sourcepref_t *sourcepref, s4_cmp_mode_t cmp_mode, int monotonic, int flags)
 Creates a new filter condition with a user specified filter function. More...
 
int s4_cond_is_filter (s4_condition_t *cond)
 Checks if this condition is a filter condition. More...
 
int s4_cond_is_combiner (s4_condition_t *cond)
 Checks if this condition is a combiner condition. More...
 
s4_filter_type_t s4_cond_get_filter_type (s4_condition_t *cond)
 
s4_combine_type_t s4_cond_get_combiner_type (s4_condition_t *cond)
 
int s4_cond_get_flags (s4_condition_t *cond)
 Gets the flags for a condition. More...
 
const char * s4_cond_get_key (s4_condition_t *cond)
 Gets the key for a condition. More...
 
s4_sourcepref_ts4_cond_get_sourcepref (s4_condition_t *cond)
 Gets the source preference that should be used. More...
 
void * s4_cond_get_funcdata (s4_condition_t *cond)
 Returns the data that should be fed to the filter function. More...
 
void s4_cond_free (s4_condition_t *cond)
 Frees a condition and operands recursively. More...
 
s4_condition_ts4_cond_ref (s4_condition_t *cond)
 Increments the reference count of a condition. More...
 
void s4_cond_unref (s4_condition_t *cond)
 Decrements the reference count of a condition. More...
 
filter_function_t s4_cond_get_filter_function (s4_condition_t *cond)
 Gets the filter function for the condition. More...
 
combine_function_t s4_cond_get_combine_function (s4_condition_t *cond)
 Gets the combine function for the condition. More...
 
int s4_cond_is_monotonic (s4_condition_t *cond)
 Checks if the condition is a monotonic filter. More...
 
int s4_cond_get_cmp_mode (s4_condition_t *cond)
 Gets the comparison mode used by the filter condition. More...
 
void s4_cond_update_key (s4_condition_t *cond, s4_t *s4)
 Change the key with a constant key for faster checking. More...
 

Enumeration Type Documentation

Enumerator
S4_COND_COMBINER 
S4_COND_FILTER