Skip to content

Commit

Permalink
update extism host functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 25, 2024
1 parent c9708bc commit 5bb8646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdk/src/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extern "ExtismHost" {
fn get_current_track();
fn get_current_tracklist() -> Json<Tracklist>;
fn play_track_at(index: u32);
fn remove_track_at(index: u32);
fn remove_track(index: u32);
}

pub fn player() -> Player {
Expand Down Expand Up @@ -97,6 +97,6 @@ impl Player {
}

pub fn remove_track_at(&self, index: u32) -> Result<(), Error> {
unsafe { remove_track_at(index) }
unsafe { remove_track(index) }
}
}

0 comments on commit 5bb8646

Please sign in to comment.