mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-25 11:18:27 +08:00
analyzer: adapt analyzer_poll to new network code
This commit is contained in:
parent
900b0cc629
commit
fc558bcd27
@ -93,8 +93,9 @@ int analyzer_input(void *data, int length)
|
||||
return -1;
|
||||
}
|
||||
|
||||
void analyzer_poll(void **data, int *length)
|
||||
void analyzer_poll(void **data, int *length, int *close_flag)
|
||||
{
|
||||
*close_flag = 0;
|
||||
switch(send_state) {
|
||||
case SEND_STATE_HEADER:
|
||||
*length = sizeof(struct analyzer_header) - offset_consumed;
|
||||
|
@ -7,7 +7,7 @@ void analyzer_start(void);
|
||||
void analyzer_end(void);
|
||||
|
||||
int analyzer_input(void *data, int length);
|
||||
void analyzer_poll(void **data, int *length);
|
||||
void analyzer_poll(void **data, int *length, int *close_flag);
|
||||
void analyzer_ack_consumed(int length);
|
||||
void analyzer_ack_sent(int length);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user