/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  backend-rtfbib.h header file for backend-rtfbib.c
  markus@mhoenicka.de 2008-01-27

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, see <http://www.gnu.org/licenses/>

  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/

int prepare_render_rtfbib(char** ptr_ref, size_t* ptr_ref_len, struct bibinfo* ptr_biblio_info, dbi_conn conn);
int finish_render_rtfbib(char** ptr_ref, size_t* ptr_ref_len, struct BIBCONNS* ptr_bibconns, struct bibinfo* ptr_biblio_info, char* table_name, struct CLIENT_REQUEST* ptr_clrequest);
int render_rtfbib(char** ptr_ref, size_t* ptr_ref_len, struct BIBCONNS* ptr_bibconns, dbi_result dbires, const char* database, struct bibinfo* ptr_biblio_info, char* username, char* pdfroot, int nref_counter, short title_as_author);
int format_rtf_entry(char** ptr_ref, size_t* ptr_ref_len, char* pubtype, struct BIBCONNS* ptr_bibconns, dbi_result dbires_cit, dbi_result dbires, const char* database, const char* username, int nref_counter, struct bibinfo* ptr_biblio_info, short title_as_author, const char* pdfroot);
char* print_rtf_format(char** ptr_buffer, size_t* ptr_buflen, const char* name, dbi_result dbires_ref, int start_group);




