diff options
| author | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
|---|---|---|
| committer | Xue Fuqiao | 2013-09-04 08:39:34 +0800 |
| commit | adf2fc4a01efe77d73cd52bc9173914ed56ff531 (patch) | |
| tree | a5a280a5554a7bffeaf94fccae29fa3ac1a5d066 /src/atimer.h | |
| parent | 63191d9f2043d2e67657e85a7b3842805dd1dad6 (diff) | |
| parent | 38726039b77db432989fed106c88e9f1aa463281 (diff) | |
| download | emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.tar.gz emacs-adf2fc4a01efe77d73cd52bc9173914ed56ff531.zip | |
Merge from mainline.
Diffstat (limited to 'src/atimer.h')
| -rw-r--r-- | src/atimer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/atimer.h b/src/atimer.h index a1825fc0933..8c4d732aa4e 100644 --- a/src/atimer.h +++ b/src/atimer.h | |||
| @@ -19,8 +19,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #ifndef EMACS_ATIMER_H | 19 | #ifndef EMACS_ATIMER_H |
| 20 | #define EMACS_ATIMER_H | 20 | #define EMACS_ATIMER_H |
| 21 | 21 | ||
| 22 | #include "systime.h" /* for EMACS_TIME */ | ||
| 23 | #include <stdbool.h> | 22 | #include <stdbool.h> |
| 23 | #include <time.h> | ||
| 24 | 24 | ||
| 25 | /* Forward declaration. */ | 25 | /* Forward declaration. */ |
| 26 | 26 | ||
| @@ -52,10 +52,10 @@ struct atimer | |||
| 52 | enum atimer_type type; | 52 | enum atimer_type type; |
| 53 | 53 | ||
| 54 | /* Time when this timer is ripe. */ | 54 | /* Time when this timer is ripe. */ |
| 55 | EMACS_TIME expiration; | 55 | struct timespec expiration; |
| 56 | 56 | ||
| 57 | /* Interval of this timer. */ | 57 | /* Interval of this timer. */ |
| 58 | EMACS_TIME interval; | 58 | struct timespec interval; |
| 59 | 59 | ||
| 60 | /* Function to call when timer is ripe. Interrupt input is | 60 | /* Function to call when timer is ripe. Interrupt input is |
| 61 | guaranteed to not be blocked when this function is called. */ | 61 | guaranteed to not be blocked when this function is called. */ |
| @@ -70,7 +70,7 @@ struct atimer | |||
| 70 | 70 | ||
| 71 | /* Function prototypes. */ | 71 | /* Function prototypes. */ |
| 72 | 72 | ||
| 73 | struct atimer *start_atimer (enum atimer_type, EMACS_TIME, | 73 | struct atimer *start_atimer (enum atimer_type, struct timespec, |
| 74 | atimer_callback, void *); | 74 | atimer_callback, void *); |
| 75 | void cancel_atimer (struct atimer *); | 75 | void cancel_atimer (struct atimer *); |
| 76 | void do_pending_atimers (void); | 76 | void do_pending_atimers (void); |