forked from external/yambar
module/i3: add a 'burst_done()' callback
This callback is called after all received packets have been processed, before going into a blocking poll() again.
This commit is contained in:
parent
5e97c77c24
commit
f9044ec883
2 changed files with 5 additions and 0 deletions
|
@ -298,6 +298,9 @@ i3_receive_loop(int abort_fd, int sock,
|
|||
memmove(buf, &buf[total_size], buf_idx - total_size);
|
||||
buf_idx -= total_size;
|
||||
}
|
||||
|
||||
if (cbs->burst_done != NULL)
|
||||
cbs->burst_done(data);
|
||||
}
|
||||
|
||||
free(buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue