commit - 310ef57cd092b0af07f656a3b8d40eea6a07ddea
commit + 4439877917f4c738e32c2ce63a961c8930c101af
blob - 7a497cb76d52cdc04d9d58b1c16cd36960337a11
blob + 38130e191d1cd390708a009f7ef8135aebe9f5d2
--- amused.c
+++ amused.c
if (current_song != NULL)
strlcpy(s.path, current_song, sizeof(s.path));
s.status = play_state;
+ s.rp.repeat_all = repeat_all;
+ s.rp.repeat_one = repeat_one;
imsg_compose_event(iev, IMSG_CTL_STATUS, 0, 0, -1, &s, sizeof(s));
}
blob - ba393dd2b0aa1bbe05e5b2204c9d9360e90188b4
blob + 65993a4ee46bf3d75153c371ee0fd4bed0a7543c
--- amused.h
+++ amused.h
int repeat_all;
};
+struct player_status {
+ char path[PATH_MAX];
+ int status;
+ struct player_repeat rp;
+};
+
struct parse_result {
enum actions action;
char **files;
int has_pledge;
};
-struct player_status {
- char path[PATH_MAX];
- int status;
-};
-
struct playlist;
/* amused.c */
blob - 4a5f6e06c1b5f7d147203eb13605df28d3add24a
blob + 8a17ad649826613006f179acd7c76797b2b12335
--- ctl.c
+++ ctl.c
}
printf("%s\n", s.path);
+ printf("repeat one %s -- repeat all %s\n",
+ s.rp.repeat_one ? "on" : "off",
+ s.rp.repeat_all ? "on" : "off");
return 1;
}