diff options
Diffstat (limited to 'libarmep/libarmep.h')
-rw-r--r-- | libarmep/libarmep.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libarmep/libarmep.h b/libarmep/libarmep.h index ad59f01..742cb0b 100644 --- a/libarmep/libarmep.h +++ b/libarmep/libarmep.h @@ -78,6 +78,8 @@ enum samples_actions { AEPSA_DATA_STARTING, AEPSA_DATA_STARTING_CHANNELS, AEPSA_DATA_STARTING_DONE, + AEPSA_ADD_POLLFD, + AEPSA_REMOVE_POLLFD }; struct aep_channel; @@ -251,6 +253,7 @@ struct aep_context { struct pollfd pollfds[MAX_PROBES]; int count_pollfds; int exit_after_capture; + int poll_timeout_ms; }; @@ -283,10 +286,9 @@ extern double correct(int no_correction, double common_mode, double in, struct i extern int get_stdin_line(char *buf, int maxlen); extern int process_sample(struct aep *aep, int ch_index); -extern int service_aep(struct aep *aep, int samples); extern int configure(struct aep_context *aep_context, struct aep *aep, const char *dev_filepath, const char *config_filepath, struct aep_channel *wch); extern char configuration_name[64]; -extern int service_aeps(struct aep_context *aep_context); +extern int service_aeps(struct aep_context *aep_context, int fd); extern void probe_close(struct aep *aep); |