Skip to content

Commit

Permalink
Fix deadbeef-rating build
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksiy-Yakovenko committed Aug 24, 2024
1 parent 472cba8 commit bcee3d1
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/deadbeef-rating/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
type: "git",
url: "https://github.com/splushii/deadbeef-rating.git",
patches: [
'make.diff'
'make.diff',
'warnings.diff'
],
},
make: {
Expand Down
55 changes: 55 additions & 0 deletions plugins/deadbeef-rating/warnings.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
diff --git a/rating.c b/rating.c
index c11e3b2..b9e47dd 100644
--- a/rating.c
+++ b/rating.c
@@ -103,43 +103,43 @@ out:
}

static int
-rating_action_rate0(DB_plugin_action_t *action, int ctx)
+rating_action_rate0(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 0);
}

static int
-rating_action_rate1(DB_plugin_action_t *action, int ctx)
+rating_action_rate1(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 1);
}

static int
-rating_action_rate2(DB_plugin_action_t *action, int ctx)
+rating_action_rate2(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 2);
}

static int
-rating_action_rate3(DB_plugin_action_t *action, int ctx)
+rating_action_rate3(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 3);
}

static int
-rating_action_rate4(DB_plugin_action_t *action, int ctx)
+rating_action_rate4(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 4);
}

static int
-rating_action_rate5(DB_plugin_action_t *action, int ctx)
+rating_action_rate5(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, 5);
}

static int
-rating_action_remove(DB_plugin_action_t *action, int ctx)
+rating_action_remove(DB_plugin_action_t *action, ddb_action_context_t ctx)
{
return rating_action_rate_helper(action, ctx, -1);
}

0 comments on commit bcee3d1

Please sign in to comment.