--- psiconv/trunk/program/psiconv/gen_rtf.c 1999/10/27 15:05:03 20 +++ psiconv/trunk/program/psiconv/gen_rtf.c 1999/12/02 17:18:55 34 @@ -25,6 +25,7 @@ #include "data.h" #include "list.h" #include "gen.h" +#include "psiconv.h" /* @@ -521,13 +522,27 @@ psiconv_list_free(colors); } -void psiconv_gen_rtf(FILE * of, psiconv_file file) +static int psiconv_gen_rtf(FILE * of, const psiconv_file file, const char *dest) { - if (file->type == psiconv_word_file) + if (file->type == psiconv_word_file) { psiconv_gen_rtf_word(of,(psiconv_word_f) file->file); - else if (file->type == psiconv_texted_file) + return 0; + } else if (file->type == psiconv_texted_file) { psiconv_gen_rtf_texted(of,(psiconv_texted_f) file->file); - else - return; + return 0; + } else + return -1; +} + +static struct psiconv_fileformat ff = +{ + "RTF", + "Rich Text Format (not functional yet!)", + psiconv_gen_rtf +}; + +void init_rtf(void) +{ + psiconv_list_add(fileformat_list,&ff); }