forked from M-Labs/artiq
1
0
Fork 0

analyzer: adapt analyzer_poll to new network code

This commit is contained in:
Sebastien Bourdeauducq 2016-03-19 22:08:08 +08:00
parent 900b0cc629
commit fc558bcd27
2 changed files with 3 additions and 2 deletions

View File

@ -93,8 +93,9 @@ int analyzer_input(void *data, int length)
return -1; 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) { switch(send_state) {
case SEND_STATE_HEADER: case SEND_STATE_HEADER:
*length = sizeof(struct analyzer_header) - offset_consumed; *length = sizeof(struct analyzer_header) - offset_consumed;

View File

@ -7,7 +7,7 @@ void analyzer_start(void);
void analyzer_end(void); void analyzer_end(void);
int analyzer_input(void *data, int length); 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_consumed(int length);
void analyzer_ack_sent(int length); void analyzer_ack_sent(int length);