1 /*---------------------------------------------------------------------------- 2 -- 3 -- Module: xitMsgWin 4 -- 5 -- Module: xitMsgWin 6 -- System: <> 7 -- Subsystem: <> 8 -- Function block: <> 9 -- 10 -- Description: 11 -- Interface file for module xitMsgWin. 12 -- 13 -- Filename: xitMsgWin.h 14 -- 15 -- Authors: Roger Larsson, Ulrika Bornetun 16 -- Creation date: 1992-06-16 17 -- 18 -- 19 -- (C) Copyright Ulrika Bornetun, Roger Larsson (1995) 20 -- All rights reserved 21 -- 22 -- Permission to use, copy, modify, and distribute this software and its 23 -- documentation for any purpose and without fee is hereby granted, 24 -- provided that the above copyright notice appear in all copies. Ulrika 25 -- Bornetun and Roger Larsson make no representations about the usability 26 -- of this software for any purpose. It is provided "as is" without express 27 -- or implied warranty. 28 ----------------------------------------------------------------------------*/ 29 30 /* SCCS module identifier. */ 31 /* SCCSID = @(#) Module: xitMsgWin.h, Version: 1.1, Date: 95/02/18 15:10:42 */ 32 33 34 /* Include this module only once. */ 35 #ifndef define_xitMsgWin_h 36 # define define_xitMsgWin_h 37 38 39 /*---------------------------------------------------------------------------- 40 -- Include files 41 ----------------------------------------------------------------------------*/ 42 43 44 /*---------------------------------------------------------------------------- 45 -- Macro definitions 46 ----------------------------------------------------------------------------*/ 47 48 49 /*---------------------------------------------------------------------------- 50 -- Type declarations 51 ----------------------------------------------------------------------------*/ 52 53 /* Handle to use when comminucating with the message window. */ 54 typedef void *XIT_MSW_HANDLE; 55 56 /* Labels to use in the window. */ 57 typedef struct { 58 char *title; 59 char *list_label; 60 char *clear_button; 61 char *close_button; 62 } XIT_MSW_LABEL_REC; 63 64 65 /*---------------------------------------------------------------------------- 66 -- Global definitions 67 ----------------------------------------------------------------------------*/ 68 69 70 /*---------------------------------------------------------------------------- 71 -- Function prototypes 72 ----------------------------------------------------------------------------*/ 73 74 void 75 xitMsgWinClearWindow( XIT_MSW_HANDLE msg_win_handle ); 76 77 XIT_MSW_HANDLE 78 xitCreateMsgWindow( Widget parent, 79 int max_messages, 80 char *log_file, 81 XIT_MSW_LABEL_REC *labels ); 82 83 void 84 xitMsgWinDestroy( XIT_MSW_HANDLE msg_win_handle ); 85 86 void 87 xitMsgWinDisplayMessage( XIT_MSW_HANDLE msg_win_handle, 88 char *msg, 89 int msg_id ); 90 91 #endif 92