exp_farg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* exp_farg.h: Routines to export to a Fargo file
  2. Copyright (C) 2002-2003 Sebastian Reichelt
  3. Copyright (C) 2003 Kevin Kofler
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
  15. #ifndef EXP_FARG_H
  16. #define EXP_FARG_H
  17. #include "../generic.h"
  18. #ifdef FARGO_SUPPORT
  19. #include "exp_def.h"
  20. #include "../data.h"
  21. // Get the file size needed to export the program into a Fargo file.
  22. // Returns 0 on failure.
  23. SIZE GetFargoFileSize (const PROGRAM *Program);
  24. // Export the internal data structures into a Fargo file.
  25. BOOLEAN ExportFargoFile (const PROGRAM *Program, EXP_FILE *File, SIZE FileSize, ProgramCalcs DestCalc);
  26. #endif /* FARGO_SUPPORT */
  27. #endif