summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXANTRONIX Development2022-03-07 20:30:10 -0500
committerXANTRONIX Development2022-03-07 20:30:10 -0500
commit46c6f809e842ec50a8073a7ef7f94594955f4fe7 (patch)
treecf3cdfb774d858a8ca51d82ae514c114f70bb051 /src
parentb031fad15e922433d44f322a6891981ea9601d40 (diff)
downloadxas-46c6f809e842ec50a8073a7ef7f94594955f4fe7.tar.gz
xas-46c6f809e842ec50a8073a7ef7f94594955f4fe7.tar.bz2
xas-46c6f809e842ec50a8073a7ef7f94594955f4fe7.zip
Rename stuff in a cat-like manner :3
Diffstat (limited to 'src')
-rw-r--r--src/seq.c68
1 files changed, 34 insertions, 34 deletions
diff --git a/src/seq.c b/src/seq.c
index 42c20f6..dbf5487 100644
--- a/src/seq.c
+++ b/src/seq.c
@@ -40,7 +40,7 @@ void xas_seq_destroy(xas_seq *seq) {
free(seq);
}
-static int add_event(xas_seq *seq, xas_seq_event *ev) {
+static int event_add(xas_seq *seq, xas_seq_event *ev) {
xas_seq_event_list_item *item;
if ((item = malloc(sizeof(*item))) == NULL) {
@@ -100,13 +100,13 @@ int xas_seq_add_event_off(xas_seq *seq,
ev->object = object;
ev->timestamp = timestamp;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -127,13 +127,13 @@ int xas_seq_add_event_on(xas_seq *seq,
ev->object = object;
ev->timestamp = timestamp;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -156,13 +156,13 @@ int xas_seq_add_set_position(xas_seq *seq,
ev->timestamp = timestamp;
ev->point = point;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -185,13 +185,13 @@ int xas_seq_add_set_heading(xas_seq *seq,
ev->timestamp = timestamp;
ev->heading = heading;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -214,13 +214,13 @@ int xas_seq_add_set_speed(xas_seq *seq,
ev->timestamp = timestamp;
ev->speed = speed;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -243,13 +243,13 @@ int xas_seq_add_set_gain(xas_seq *seq,
ev->timestamp = timestamp;
ev->gain = gain;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -272,13 +272,13 @@ int xas_seq_add_set_bank(xas_seq *seq,
ev->timestamp = timestamp;
ev->index = index;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -301,13 +301,13 @@ int xas_seq_add_set_player_flags(xas_seq *seq,
ev->timestamp = timestamp;
ev->flags = flags;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -330,13 +330,13 @@ int xas_seq_add_set_synth_type(xas_seq *seq,
ev->timestamp = timestamp;
ev->synth_type = type;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -359,13 +359,13 @@ int xas_seq_add_set_frequency(xas_seq *seq,
ev->timestamp = timestamp;
ev->frequency = frequency;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev:
@@ -388,13 +388,13 @@ int xas_seq_add_phrase(xas_seq *seq,
ev->timestamp = timestamp;
ev->phrase = phrase;
- if (add_event(seq, ev) < 0) {
- goto error_add_event;
+ if (event_add(seq, ev) < 0) {
+ goto error_event_add;
}
return 0;
-error_add_event:
+error_event_add:
free(ev);
error_malloc_ev: