forked from M-Labs/artiq
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