#ifndef SHARED_SURVEY_UTIL_H
#define SHARED_SURVEY_UTIL_H

#include "../survey.h"

int is_likert_tag(const char *tag);
SURVEY_DATA *initialize_survey_data(SURVEY_DATA *data);
SURVEY_DATA *get_clipboard_data(SURVEY_LIST *list);
SURVEY_DATA * get_one_survey_data(SURVEY_LIST *list, int count);
void free_survey_data(SURVEY_DATA *data); SURVEY_INFO* initialize_survey_info(SURVEY_INFO *survey_info);
char *get_survey_time_string();
void free_survey_info(SURVEY_INFO *info);
void write_one_survey_info(SURVEY_INFO *info, FILE *fp);
int test_file_exist(const char *file_name);
void write_head_info_xml(const char *info_file, SURVEY_INFO *info);
void write_survey_info_xml(SURVEY_INFO *info, const char *info_file);
void get_survey_id(char *survey_id, const char *base);
void insert_survey_spell_check_button();

#endif 
