From 0f089b1614ea8dcdd4f532de2c315ce70d5d5279 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Thu, 22 Mar 2012 20:42:22 -0300 Subject: [PATCH] Change API function names Signed-off-by: Claudio Matsuoka --- src/commands.c | 18 +++++++++--------- src/main.c | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/commands.c b/src/commands.c index 41bbde1..6d667dd 100644 --- a/src/commands.c +++ b/src/commands.c @@ -107,37 +107,37 @@ void read_command(xmp_context handle, struct control *ctl) case 'B': goto cmd_prev_mod; case 'C': - goto cmd_next_ord; + goto cmd_next_pos; case 'D': - goto cmd_prev_ord; + goto cmd_prev_pos; } break; case 'q': /* quit */ cmd_quit: - xmp_mod_stop(handle); + xmp_stop_module(handle); ctl->pause = 0; ctl->skip = -2; break; case 'f': /* jump to next order */ - cmd_next_ord: - xmp_ord_next(handle); + cmd_next_pos: + xmp_next_position(handle); ctl->pause = 0; break; case 'b': /* jump to previous order */ - cmd_prev_ord: - xmp_ord_prev(handle); + cmd_prev_pos: + xmp_prev_position(handle); ctl->pause = 0; break; case 'n': /* skip to next module */ cmd_next_mod: - xmp_mod_stop(handle); + xmp_stop_module(handle); ctl->pause = 0; ctl->skip = 1; break; case 'p': /* skip to previous module */ cmd_prev_mod: - xmp_mod_stop(handle); + xmp_stop_module(handle); ctl->pause = 0; ctl->skip = -1; break; diff --git a/src/main.c b/src/main.c index e0a35ee..d8b751b 100644 --- a/src/main.c +++ b/src/main.c @@ -216,7 +216,7 @@ int main(int argc, char **argv) control.loop = options.loop; if (xmp_player_start(handle, options.freq, options.format) == 0) { - xmp_ord_set(handle, options.start); + xmp_set_position(handle, options.start); /* Mute channels */