1 /* ************************************************************** 2 Copyright (C) 2018 Siemens AG 3 Author: Gaurav Mishra <mishra.gaurav@siemens.com> 4 5 This program is free software; you can redistribute it and/or 6 modify it under the terms of the GNU General Public License 7 version 2 as published by the Free Software Foundation. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along 15 with this program; if not, write to the Free Software Foundation, Inc., 16 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 17 ************************************************************** */ 18 19 #ifndef EMAILFORMATTER_H_INCLUDE 20 #define EMAILFORMATTER_H_INCLUDE 21 22 #include <agent.h> 23 24 /** 25 * Structure to hold information about a single agent required by email formatter 26 */ 27 typedef struct 28 { 29 guint id; ///< Job queue id for the agent 30 GString* agent; ///< Agent name 31 gboolean status; ///< Agent status (Pass => true, fail => false) 32 } agent_info; 33 34 /* Format rows as plain text */ 35 const gchar* email_format_text(GPtrArray *rows, gchar *fossy_url); 36 37 #endif /* EMAILFORMATTER_H_INCLUDE */ 38 39