summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-16 00:26:47 -0400
committerXANTRONIX Development2022-03-16 00:26:47 -0400
commitafbcc80972c175003d51c7a87015d597257efbbe (patch)
treebd434ec5e511073ce52ef19209a27935d334fb8f
parente8eeaba4104c7dd66a10c0bdc39559a5c6634db0 (diff)
downloadxas-afbcc80972c175003d51c7a87015d597257efbbe.tar.gz
xas-afbcc80972c175003d51c7a87015d597257efbbe.tar.bz2
xas-afbcc80972c175003d51c7a87015d597257efbbe.zip
Rename xas_object_set_bank() to set_entry()
-rw-r--r--include/xas/object.h6
-rw-r--r--src/object.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/include/xas/object.h b/include/xas/object.h
index 6ca515e..5780c7d 100644
--- a/include/xas/object.h
+++ b/include/xas/object.h
@@ -13,7 +13,7 @@ typedef int (*xas_object_set_gain_callback)(xas_object *object, float gain);
typedef int (*xas_object_set_freq_callback)(xas_object *object, size_t freq);
-typedef int (*xas_object_set_bank_callback)(xas_object *object, size_t bank);
+typedef int (*xas_object_set_entry_callback)(xas_object *object, size_t entry);
typedef int (*xas_object_set_flags_callback)(xas_object *object, int flags);
@@ -25,7 +25,7 @@ struct _xas_object {
xas_object_start_callback start;
xas_object_stop_callback stop;
xas_object_set_gain_callback set_gain;
- xas_object_set_bank_callback set_bank;
+ xas_object_set_entry_callback set_entry;
xas_object_set_freq_callback set_freq;
xas_object_set_flags_callback set_flags;
xas_object_stream_new_callback stream_new;
@@ -40,7 +40,7 @@ int xas_object_stop(xas_object *object);
int xas_object_set_gain(xas_object *object, float gain);
-int xas_object_set_bank(xas_object *object, size_t bank);
+int xas_object_set_entry(xas_object *object, size_t entry);
int xas_object_set_freq(xas_object *object, size_t freq);
diff --git a/src/object.c b/src/object.c
index 70271c1..3c8c84a 100644
--- a/src/object.c
+++ b/src/object.c
@@ -37,14 +37,14 @@ int xas_object_set_gain(xas_object *object, float gain) {
return object->set_gain(object, gain);
}
-int xas_object_set_bank(xas_object *object, size_t bank) {
- if (object->set_bank == NULL) {
+int xas_object_set_entry(xas_object *object, size_t entry) {
+ if (object->set_entry == NULL) {
errno = ENOSYS;
return -1;
}
- return object->set_bank(object, bank);
+ return object->set_entry(object, entry);
}
int xas_object_set_freq(xas_object *object, size_t freq) {