diff options
author | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
---|---|---|
committer | Eduardo Chappa <echappa@gmx.com> | 2013-02-03 00:59:38 -0700 |
commit | 094ca96844842928810f14844413109fc6cdd890 (patch) | |
tree | e60efbb980f38ba9308ccb4fb2b77b87bbc115f3 /alpine/after.h | |
download | alpine-094ca96844842928810f14844413109fc6cdd890.tar.xz |
Initial Alpine Version
Diffstat (limited to 'alpine/after.h')
-rw-r--r-- | alpine/after.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/alpine/after.h b/alpine/after.h new file mode 100644 index 00000000..0e27be06 --- /dev/null +++ b/alpine/after.h @@ -0,0 +1,44 @@ +/* + * $Id: after.h 137 2006-09-22 21:34:06Z mikes@u.washington.edu $ + * + * ======================================================================== + * Copyright 2006-2007 University of Washington + * Copyright 2013 Eduardo Chappa + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * ======================================================================== + */ + +#ifndef PINE_AFTER_INCLUDED +#define PINE_AFTER_INCLUDED + +/* + * start_after() arguments + */ +typedef struct _after_s { + int delay; /* call "f" after "delay" 1/100's of sec */ + int (*f)(void *); /* 0 if done, else repeat in ret'd 1/100's */ + void (*cf)(void *); /* called when done to clean up "data" etc */ + void *data; /* hook to pass args and such to "f" and "cf" */ + struct _after_s *next; /* next function to pause or repeat */ +} AFTER_S; + + +extern int after_active; + + +/* exported prototypes */ +void start_after(AFTER_S *); +void stop_after(int); +AFTER_S *new_afterstruct(void); +void status_message_lock_init(void); +int status_message_lock(void); +int status_message_unlock(void); + + +#endif /* PINE_AFTER_INCLUDED */ |