-int start_autosample_process(options_t* opt);
-int autosample_process(options_t *opt, int pipefd);
+int send_sample_cmd(int fd, const char* device_name);
+int start_autosample_process(options_t* opt, autosample_process_t* a);
+int autosample_process(options_t *opt, int writefd, int readfd);