File: iscsi_timer.h

package info (click to toggle)
open-iscsi 2.1.11-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,912 kB
  • sloc: ansic: 49,788; perl: 2,481; sh: 2,247; makefile: 660; python: 622; yacc: 219; lex: 74
file content (28 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (10)
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