summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {