X-Git-Url: https://git.realraum.at/?p=svn42.git;a=blobdiff_plain;f=powersensordaemon%2Fautosample.h;h=254585cc539140862039e2002414fddc3b58280f;hp=ee3b2f823e242fa86deeed687fbc8ff1edf2e23b;hb=a34e51d757fe52cb19de2937ae1b211894167524;hpb=ed84246e82295c574998450115a98565814ac2b2 diff --git a/powersensordaemon/autosample.h b/powersensordaemon/autosample.h index ee3b2f8..254585c 100644 --- a/powersensordaemon/autosample.h +++ b/powersensordaemon/autosample.h @@ -24,7 +24,22 @@ #include "options.h" -int start_autosample_process(options_t* opt); -int autosample_process(options_t *opt, int pipefd); +struct autosample_process_struct { + pid_t pid_; + int read_fd_; + int write_fd_; +}; +typedef struct autosample_process_struct autosample_process_t; + +struct autosample_device_struct { + int delay_; + int cnt_; + char* device_name_; +}; +typedef struct autosample_device_struct autosample_device_t; + +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); #endif