00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef HISTORY_ODBC_H
00014 #define HISTORY_ODBC_H
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020
00021
00022
00023 int hs_connect_odbc(const char* odbc_dsn);
00024 int hs_disconnect_odbc();
00025
00026 int hs_debug_odbc(int debug);
00027 int hs_set_alarm_odbc(const char* alarm_name);
00028
00029 int hs_define_event_odbc(const char* event_name, const TAG tags[], int tags_size);
00030 int hs_write_event_odbc(const char* event_name, time_t timestamp, const char* buffer, int buffer_size);
00031
00032 int hs_get_tags_odbc(const char* event_name, int *n_tags, TAG **tags);
00033
00034 int hs_read_odbc(time_t start_time, time_t end_time, time_t interval,
00035 const char* event_name, const char* tag_name, int var_index,
00036 int *num_entries,
00037 time_t** time_buffer, double**data_buffer);
00038
00039 #ifdef __cplusplus
00040 }
00041 #endif
00042
00043 #endif
00044