* Fix an error in compilation when Alpine is not built with S/MIME
[alpine.git] / alpine / after.h
blob1f9d9960d1cf4330151ed95df9b7c0f9b489edeb
1 /*
2 * $Id: after.h 137 2006-09-22 21:34:06Z mikes@u.washington.edu $
4 * ========================================================================
5 * Copyright 2006-2007 University of Washington
6 * Copyright 2013-2016 Eduardo Chappa
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * ========================================================================
17 #ifndef PINE_AFTER_INCLUDED
18 #define PINE_AFTER_INCLUDED
21 * start_after() arguments
23 typedef struct _after_s {
24 int delay; /* call "f" after "delay" 1/100's of sec */
25 int (*f)(void *); /* 0 if done, else repeat in ret'd 1/100's */
26 void (*cf)(void *); /* called when done to clean up "data" etc */
27 void *data; /* hook to pass args and such to "f" and "cf" */
28 struct _after_s *next; /* next function to pause or repeat */
29 } AFTER_S;
32 extern int after_active;
35 /* exported prototypes */
36 void start_after(AFTER_S *);
37 void stop_after(int);
38 AFTER_S *new_afterstruct(void);
39 void status_message_lock_init(void);
40 int status_message_lock(void);
41 int status_message_unlock(void);
44 #endif /* PINE_AFTER_INCLUDED */