summaryrefslogtreecommitdiff
path: root/usr/iscsi_timer.h
blob: 13e8368c6e27038794de7ef1d9e7dce381338ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * iSCSI timer
 *
 * Copyright (C) 2002 Cisco Systems, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published
 * by the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * General Public License for more details.
 *
 * See the file COPYING included with this distribution for more details.
 */
#ifndef ISCSI_TIMER_H
#define ISCSI_TIMER_H

struct timeval;

extern void iscsi_timer_clear(struct timeval *timer);
extern void iscsi_timer_set(struct timeval *timer, int seconds);
extern int iscsi_timer_expired(struct timeval *timer);
extern int iscsi_timer_msecs_until(struct timeval *timer);

#endif