Ignore:
Timestamp:
10/17/11 01:49:55 (10 years ago)
Author:
mmamonski
Message:

log reder reStructured

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/pbs_drmaa/log_reader.h

    r21 r29  
    2525#endif 
    2626 
     27#include <stdio.h> 
     28 
    2729#include <drmaa_utils/job.h> 
    2830#include <drmaa_utils/session.h> 
     
    3133 
    3234pbsdrmaa_log_reader_t *  
    33 pbsdrmaa_log_reader_new ( fsd_drmaa_session_t * session, fsd_job_t * job ); 
    34  
    35 pbsdrmaa_log_reader_t *  
    36 pbsdrmaa_log_reader_accounting_new ( fsd_drmaa_session_t * session, fsd_job_t * job ); 
     35pbsdrmaa_log_reader_new ( fsd_drmaa_session_t * session); 
    3736 
    3837void 
     
    4140struct pbsdrmaa_log_reader_s { 
    4241        fsd_drmaa_session_t *volatile session ; 
    43         fsd_job_t *volatile job; 
    4442         
    45         bool (* 
    46         read_log) ( pbsdrmaa_log_reader_t * self ); 
     43        void (*read_log) ( pbsdrmaa_log_reader_t * self ); 
    4744         
    48         void (* 
    49         select_file) ( pbsdrmaa_log_reader_t * self ); 
     45        void (*select_file) ( pbsdrmaa_log_reader_t * self ); 
    5046         
    51         /* line - read line, buffer - keeps read but not returned lines, idx, end_idx and line_idx values needed to be kept outside the function */ 
    52         ssize_t (* 
    53         read_line) ( pbsdrmaa_log_reader_t * self, char * line, char * buffer, ssize_t size, int * idx, int * end_idx, int * line_idx ); 
    54          
    55         /* specifies if function should run */ 
     47        /* determines if function should run */ 
    5648        bool run_flag; 
    5749         
     
    5951        time_t t;        
    6052         
    61         /* for job_on_missing  - available log files */ 
    62         char ** log_files; 
    63          
    64         /* for job_on_missing - number of log files */ 
    65         int log_files_number; 
    66          
    67         /* log file descriptor */ 
    68         int volatile fd; 
    69          
    70         /* for job_on_missing - log file size when function was ran */ 
    71         off_t log_file_initial_size; 
    72          
    73         /* for job_on_missing - read lines size */ 
    74         off_t log_file_read_size; 
     53        /* log file handle */ 
     54        FILE *fhandle; 
    7555         
    7656        /* for wait_thread - day changed */ 
     
    7959        /* for wait_thread - log file first open */ 
    8060        bool volatile first_open;        
    81          
    82         char * name; 
    8361}; 
    8462 
Note: See TracChangeset for help on using the changeset viewer.