/* * mon_info.h - Part of AFD, an automatic file distribution program. * Copyright (c) 1999 - 2012 Holger Kiehl * * 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, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __mon_info_h #define __mon_info_h #include "motif_common_defs.h" #include "mondefs.h" #define NO_OF_MSA_ROWS 6 #define MSA_INFO_TEXT_WIDTH_L 15 #define MSA_INFO_TEXT_WIDTH_R 18 #define MON_INFO_LENGTH 20 #define UPDATE_INTERVAL 1000 #define FILE_UPDATE_INTERVAL 4 struct prev_values { char real_hostname[2][MAX_REAL_HOSTNAME_LENGTH]; char r_work_dir[MAX_PATH_LENGTH]; char afd_version[MAX_VERSION_LENGTH]; int port[2]; int poll_interval; int max_connections; int no_of_hosts; int top_not; /* TOP number of transfers. */ unsigned int top_tr; unsigned int top_fr; time_t last_data_time; char afd_toggle; }; /* Function prototypes. */ extern void close_button(Widget, XtPointer, XtPointer), save_button(Widget, XtPointer, XtPointer), update_info(Widget); #endif /* __mon_info_h */