mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
Update Fluidsynth to 2.0.1
This commit is contained in:
parent
5b280463ce
commit
abf7905d5f
72 changed files with 26031 additions and 16899 deletions
|
|
@ -27,7 +27,7 @@
|
|||
/*
|
||||
* Adapted for FluidSynth use by Josh Green <jgreen@users.sourceforge.net>
|
||||
* September 8, 2009 from glib 2.18.4
|
||||
*
|
||||
*
|
||||
* - Self contained (no dependencies on glib)
|
||||
* - changed names to fluid_hashtable_...
|
||||
*/
|
||||
|
|
@ -52,80 +52,80 @@ typedef struct _fluid_hashnode_t fluid_hashnode_t;
|
|||
|
||||
struct _fluid_hashnode_t
|
||||
{
|
||||
void *key;
|
||||
void *value;
|
||||
fluid_hashnode_t *next;
|
||||
unsigned int key_hash;
|
||||
void *key;
|
||||
void *value;
|
||||
fluid_hashnode_t *next;
|
||||
unsigned int key_hash;
|
||||
};
|
||||
|
||||
struct _fluid_hashtable_t
|
||||
{
|
||||
int size;
|
||||
int nnodes;
|
||||
fluid_hashnode_t **nodes;
|
||||
fluid_hash_func_t hash_func;
|
||||
fluid_equal_func_t key_equal_func;
|
||||
volatile int ref_count;
|
||||
fluid_destroy_notify_t key_destroy_func;
|
||||
fluid_destroy_notify_t value_destroy_func;
|
||||
fluid_rec_mutex_t mutex; // Optionally used in other modules (fluid_settings.c for example)
|
||||
int size;
|
||||
int nnodes;
|
||||
fluid_hashnode_t **nodes;
|
||||
fluid_hash_func_t hash_func;
|
||||
fluid_equal_func_t key_equal_func;
|
||||
fluid_atomic_int_t ref_count;
|
||||
fluid_destroy_notify_t key_destroy_func;
|
||||
fluid_destroy_notify_t value_destroy_func;
|
||||
fluid_rec_mutex_t mutex; // Optionally used in other modules (fluid_settings.c for example)
|
||||
};
|
||||
|
||||
struct _fluid_hashtable_iter_t
|
||||
{
|
||||
/*< private >*/
|
||||
void * dummy1;
|
||||
void * dummy2;
|
||||
void * dummy3;
|
||||
int dummy4;
|
||||
int dummy5; // Bool
|
||||
void * dummy6;
|
||||
/*< private >*/
|
||||
void *dummy1;
|
||||
void *dummy2;
|
||||
void *dummy3;
|
||||
int dummy4;
|
||||
int dummy5; // Bool
|
||||
void *dummy6;
|
||||
};
|
||||
|
||||
fluid_hashtable_t* new_fluid_hashtable (fluid_hash_func_t hash_func,
|
||||
fluid_equal_func_t key_equal_func);
|
||||
fluid_hashtable_t* new_fluid_hashtable_full (fluid_hash_func_t hash_func,
|
||||
fluid_equal_func_t key_equal_func,
|
||||
fluid_destroy_notify_t key_destroy_func,
|
||||
fluid_destroy_notify_t value_destroy_func);
|
||||
fluid_hashtable_t *new_fluid_hashtable(fluid_hash_func_t hash_func,
|
||||
fluid_equal_func_t key_equal_func);
|
||||
fluid_hashtable_t *new_fluid_hashtable_full(fluid_hash_func_t hash_func,
|
||||
fluid_equal_func_t key_equal_func,
|
||||
fluid_destroy_notify_t key_destroy_func,
|
||||
fluid_destroy_notify_t value_destroy_func);
|
||||
void delete_fluid_hashtable(fluid_hashtable_t *hashtable);
|
||||
|
||||
void fluid_hashtable_iter_init (fluid_hashtable_iter_t *iter, fluid_hashtable_t *hashtable);
|
||||
int fluid_hashtable_iter_next (fluid_hashtable_iter_t *iter, void **key, void **value);
|
||||
fluid_hashtable_t *fluid_hashtable_iter_get_hash_table (fluid_hashtable_iter_t *iter);
|
||||
void fluid_hashtable_iter_remove (fluid_hashtable_iter_t *iter);
|
||||
void fluid_hashtable_iter_steal (fluid_hashtable_iter_t *iter);
|
||||
void fluid_hashtable_iter_init(fluid_hashtable_iter_t *iter, fluid_hashtable_t *hashtable);
|
||||
int fluid_hashtable_iter_next(fluid_hashtable_iter_t *iter, void **key, void **value);
|
||||
fluid_hashtable_t *fluid_hashtable_iter_get_hash_table(fluid_hashtable_iter_t *iter);
|
||||
void fluid_hashtable_iter_remove(fluid_hashtable_iter_t *iter);
|
||||
void fluid_hashtable_iter_steal(fluid_hashtable_iter_t *iter);
|
||||
|
||||
fluid_hashtable_t* fluid_hashtable_ref (fluid_hashtable_t *hashtable);
|
||||
void fluid_hashtable_unref (fluid_hashtable_t *hashtable);
|
||||
fluid_hashtable_t *fluid_hashtable_ref(fluid_hashtable_t *hashtable);
|
||||
void fluid_hashtable_unref(fluid_hashtable_t *hashtable);
|
||||
|
||||
void *fluid_hashtable_lookup (fluid_hashtable_t *hashtable, const void *key);
|
||||
int fluid_hashtable_lookup_extended (fluid_hashtable_t *hashtable, const void *lookup_key,
|
||||
void **orig_key, void **value);
|
||||
void *fluid_hashtable_lookup(fluid_hashtable_t *hashtable, const void *key);
|
||||
int fluid_hashtable_lookup_extended(fluid_hashtable_t *hashtable, const void *lookup_key,
|
||||
void **orig_key, void **value);
|
||||
|
||||
void fluid_hashtable_insert (fluid_hashtable_t *hashtable, void *key, void *value);
|
||||
void fluid_hashtable_replace (fluid_hashtable_t *hashtable, void *key, void *value);
|
||||
void fluid_hashtable_insert(fluid_hashtable_t *hashtable, void *key, void *value);
|
||||
void fluid_hashtable_replace(fluid_hashtable_t *hashtable, void *key, void *value);
|
||||
|
||||
int fluid_hashtable_remove (fluid_hashtable_t *hashtable, const void *key);
|
||||
int fluid_hashtable_steal (fluid_hashtable_t *hashtable, const void *key);
|
||||
void fluid_hashtable_remove_all (fluid_hashtable_t *hashtable);
|
||||
void fluid_hashtable_steal_all (fluid_hashtable_t *hashtable);
|
||||
unsigned int fluid_hashtable_foreach_steal (fluid_hashtable_t *hashtable,
|
||||
fluid_hr_func_t func, void *user_data);
|
||||
void fluid_hashtable_foreach (fluid_hashtable_t *hashtable, fluid_hr_func_t func,
|
||||
void *user_data);
|
||||
void *fluid_hashtable_find (fluid_hashtable_t *hashtable, fluid_hr_func_t predicate,
|
||||
int fluid_hashtable_remove(fluid_hashtable_t *hashtable, const void *key);
|
||||
int fluid_hashtable_steal(fluid_hashtable_t *hashtable, const void *key);
|
||||
void fluid_hashtable_remove_all(fluid_hashtable_t *hashtable);
|
||||
void fluid_hashtable_steal_all(fluid_hashtable_t *hashtable);
|
||||
unsigned int fluid_hashtable_foreach_steal(fluid_hashtable_t *hashtable,
|
||||
fluid_hr_func_t func, void *user_data);
|
||||
void fluid_hashtable_foreach(fluid_hashtable_t *hashtable, fluid_hr_func_t func,
|
||||
void *user_data);
|
||||
unsigned int fluid_hashtable_size (fluid_hashtable_t *hashtable);
|
||||
fluid_list_t *fluid_hashtable_get_keys (fluid_hashtable_t *hashtable);
|
||||
fluid_list_t *fluid_hashtable_get_values (fluid_hashtable_t *hashtable);
|
||||
void *fluid_hashtable_find(fluid_hashtable_t *hashtable, fluid_hr_func_t predicate,
|
||||
void *user_data);
|
||||
unsigned int fluid_hashtable_size(fluid_hashtable_t *hashtable);
|
||||
fluid_list_t *fluid_hashtable_get_keys(fluid_hashtable_t *hashtable);
|
||||
fluid_list_t *fluid_hashtable_get_values(fluid_hashtable_t *hashtable);
|
||||
|
||||
int fluid_str_equal (const void *v1, const void *v2);
|
||||
unsigned int fluid_str_hash (const void *v);
|
||||
int fluid_direct_equal (const void *v1, const void *v2);
|
||||
unsigned int fluid_direct_hash (const void *v);
|
||||
int fluid_int_equal (const void *v1, const void *v2);
|
||||
unsigned int fluid_int_hash (const void *v);
|
||||
int fluid_str_equal(const void *v1, const void *v2);
|
||||
unsigned int fluid_str_hash(const void *v);
|
||||
int fluid_direct_equal(const void *v1, const void *v2);
|
||||
unsigned int fluid_direct_hash(const void *v);
|
||||
int fluid_int_equal(const void *v1, const void *v2);
|
||||
unsigned int fluid_int_hash(const void *v);
|
||||
|
||||
#endif /* _FLUID_HASH_H */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue