TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

tsp_ascii_writer.h

Go to the documentation of this file.
00001 
00037 #ifndef _TSP_ASCII_WRITER_H_
00038 #define _TSP_ASCII_WRITER_H_
00039 
00040 #include "tsp_abs_types.h"
00041 #include "tsp_consumer.h"
00042 #include <pthread.h>
00043 #include <stdio.h>
00044 
00051 extern pthread_cond_t  tsp_ascii_writer_condvar;
00052 extern pthread_mutex_t tsp_ascii_writer_mutex;
00053 extern int tsp_ascii_writer_parse_error;
00054 extern int tsp_ascii_writer_lineno;
00055 extern int tsp_ascii_writer_colno;
00056 extern int tsp_ascii_writer_nb_var;
00057 extern int tsp_ascii_writer_current_var;
00058 
00070 int32_t 
00071 tsp_ascii_writer_initialise(int* argc, char** argv[]);
00072 
00077 int32_t
00078 tsp_ascii_writer_add_var(char* symbol_name);
00079 int32_t
00080 tsp_ascii_writer_add_var_period(int32_t period);
00081 int32_t 
00082 tsp_ascii_writer_add_comment(char* comment);
00083 
00084 
00095 int32_t 
00096 tsp_ascii_writer_load_config(const char* conffilename, 
00097                              TSP_consumer_symbol_requested_t**  tsp_symbols,
00098                              int32_t* nb_symbols);
00111 int32_t 
00112 tsp_ascii_writer_validate_symbols(TSP_consumer_symbol_requested_t*  tsp_symbols,
00113                                   int32_t nb_symbols,
00114                                   const char* tsp_provider_hostname,
00115                                   TSP_consumer_symbol_requested_list_t* tsp_symbol_list);
00116 
00128 int32_t 
00129 tsp_ascii_writer_start(FILE* sfile, int32_t nb_sample_max_infile);
00130 
00137 void*
00138 tsp_ascii_writer_thread(void* sfile);
00139 
00145 int32_t 
00146 tsp_ascii_writer_stop();
00147 
00153 int32_t 
00154 tsp_ascii_writer_finalise();
00155 
00156 
00157 #endif /* _TSP_ASCII_WRITER_H_ */
Framework Home Page.

Beware !! TSP wave is coming...