diff options
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); |