1 /*---------------------------------------------------------------------------- 2 -- 3 -- Module: xtmUpdate 4 -- 5 -- Project: XDiary 6 -- System: xtm - X Desktop Calendar 7 -- Subsystem: <> 8 -- Function block: <> 9 -- 10 -- Description: 11 -- Interface file for module xtmUpdate. 12 -- 13 -- Filename: xtmUpdate.h 14 -- 15 -- Authors: Roger Larsson, Ulrika Bornetun 16 -- Creation date: 1992-04-03 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: xtmUpdate.h, Version: 1.1, Date: 95/02/18 15:52:55 */ 32 33 34 /* Include this file only once. */ 35 #ifndef define_xtmUpdate_h 36 # define define_xtmUpdate_h 37 38 39 /*---------------------------------------------------------------------------- 40 -- Include files 41 ----------------------------------------------------------------------------*/ 42 43 44 /*---------------------------------------------------------------------------- 45 -- Macro definitions 46 ----------------------------------------------------------------------------*/ 47 48 /* Action flags. */ 49 #define XTM_UP_MINUTE_TICK (1<<0) 50 #define XTM_UP_CALENDAR (1<<1) 51 #define XTM_UP_NAV_CALENDAR (1<<2) 52 #define XTM_UP_SCHEDULE (1<<3) 53 #define XTM_UP_REFRESH_TICK (1<<4) 54 #define XTM_UP_NEW_DAY (1<<5) 55 #define XTM_UP_PLANNER (1<<6) 56 57 58 /*---------------------------------------------------------------------------- 59 -- Type declarations 60 ----------------------------------------------------------------------------*/ 61 62 /* Callback when calling a registered callback. */ 63 typedef void ( *XTM_UP_UPDATE_CB ) ( UINT32, void *, void * ); 64 65 66 /*---------------------------------------------------------------------------- 67 -- Global definitions 68 ----------------------------------------------------------------------------*/ 69 70 71 /*---------------------------------------------------------------------------- 72 -- Function prototypes 73 ----------------------------------------------------------------------------*/ 74 75 void 76 xtmUpDoUpdate( UINT32 flags, 77 void *update_user_data ); 78 79 void 80 xtmUpInitialize( XtAppContext context, 81 int refresh_delta ); 82 83 UINT32 84 xtmUpRegister( UINT32 flags, 85 XTM_UP_UPDATE_CB updateCB, 86 void *user_data ); 87 88 void 89 xtmUpRemove( UINT32 id ); 90 91 92 #endif 93