anastasis-gtk

Demonstrator GUI for Anastasis
Log | Files | Refs | README | LICENSE

print.h (1295B)


      1 /*
      2      This file is part of anastasis-gtk.
      3      Copyright (C) 2021 Anastasis SARL
      4 
      5      Anastasis is free software; you can redistribute it and/or modify
      6      it under the terms of the GNU General Public License as published
      7      by the Free Software Foundation; either version 3, or (at your
      8      option) any later version.
      9 
     10      Anastasis is distributed in the hope that it will be useful, but
     11      WITHOUT ANY WARRANTY; without even the implied warranty of
     12      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     13      General Public License for more details.
     14 
     15      You should have received a copy of the GNU General Public License
     16      along with Anastasis; see the file COPYING.  If not, write to the
     17      Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
     18      Boston, MA 02110-1301, USA.
     19 */
     20 
     21 /**
     22  * @file src/anastasis/print.h
     23  * @brief Definition of printing helper.
     24  * @author Christian Grothoff
     25  */
     26 
     27 #ifndef PRINT_H
     28 #define PRINT_H
     29 
     30 #include <jansson.h>
     31 
     32 
     33 /**
     34  * Generate a PDF file with the key-value strings
     35  * from @a user and write it to @a fname.
     36  *
     37  * @param user user attribute data to output
     38  * @param fname filename to write the PDF to (will overwrite)
     39  * @return 0 on success
     40  */
     41 int
     42 AG_print (json_t *user,
     43           const char *fname);
     44 
     45 #endif