mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Userland: Make IPC results with one return value available directly
This changes client methods so that they return the IPC response's return value directly - instead of the response struct - for IPC methods which only have a single return value.
This commit is contained in:
parent
5bb79ea0a7
commit
eb21aa65d1
18 changed files with 58 additions and 111 deletions
|
@ -24,19 +24,6 @@ public:
|
|||
void enqueue(const Buffer&);
|
||||
bool try_enqueue(const Buffer&);
|
||||
|
||||
bool get_muted();
|
||||
void set_muted(bool);
|
||||
|
||||
int get_main_mix_volume();
|
||||
void set_main_mix_volume(int);
|
||||
|
||||
int get_remaining_samples();
|
||||
int get_played_samples();
|
||||
int get_playing_buffer();
|
||||
|
||||
void set_paused(bool paused);
|
||||
void clear_buffer(bool paused = false);
|
||||
|
||||
Function<void(i32 buffer_id)> on_finish_playing_buffer;
|
||||
Function<void(bool muted)> on_muted_state_change;
|
||||
Function<void(int volume)> on_main_mix_volume_change;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue