/[LeafOK_CVS]/pvpgn-1.7.4/src/common/bnettime.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/common/bnettime.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Tue Jun 6 03:41:38 2006 UTC (19 years, 9 months ago) by sysadm
Branch: GNU, MAIN
CVS Tags: arelease, HEAD
Changes since 1.1: +0 -0 lines
Content type: text/x-chdr
no message

1 sysadm 1.1 /*
2     * Copyright (C) 1998 Mark Baysinger (mbaysing@ucsd.edu)
3     * Copyright (C) 1998,1999 Ross Combs (rocombs@cs.nmsu.edu)
4     * Copyright (C) 1999 Rob Crittenden (rcrit@greyoak.com)
5     *
6     * This program is free software; you can redistribute it and/or
7     * modify it under the terms of the GNU General Public License
8     * as published by the Free Software Foundation; either version 2
9     * of the License, or (at your option) any later version.
10     *
11     * This program is distributed in the hope that it will be useful,
12     * but WITHOUT ANY WARRANTY; without even the implied warranty of
13     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14     * GNU General Public License for more details.
15     *
16     * You should have received a copy of the GNU General Public License
17     * along with this program; if not, write to the Free Software
18     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19     */
20     #ifndef INCLUDED_BNETTIME_TYPES
21     #define INCLUDED_BNETTIME_TYPES
22    
23     typedef struct
24     {
25     #ifdef BNETTIME_INTERNAL_ACCESS
26     unsigned int u;
27     unsigned int l;
28     #else
29     unsigned int _private1;
30     unsigned int _private2;
31     #endif
32     } t_bnettime;
33    
34     #endif
35    
36    
37     /*****/
38     #ifndef JUST_NEED_TYPES
39     #ifndef INCLUDED_BNETTIME_PROTOS
40     #define INCLUDED_BNETTIME_PROTOS
41    
42     #define JUST_NEED_TYPES
43     #ifdef TIME_WITH_SYS_TIME
44     # include <sys/time.h>
45     # include <time.h>
46     #else
47     # if HAVE_SYS_TIME_H
48     # include <sys/time.h>
49     # else
50     # include <time.h>
51     # endif
52     #endif
53     #include "common/bn_type.h"
54     #undef JUST_NEED_TYPES
55    
56     extern t_bnettime secs_to_bnettime(double secs) ;
57     extern double bnettime_to_secs(t_bnettime bntime) ;
58     extern t_bnettime time_to_bnettime(time_t stdtime, unsigned int usec) ;
59     extern time_t bnettime_to_time(t_bnettime bntime) ;
60     extern t_bnettime bnettime(void);
61     extern char const * bnettime_get_str(t_bnettime bntime);
62     extern int bnettime_set_str(t_bnettime * bntime, char const * timestr);
63     extern int local_tzbias(void);
64     extern t_bnettime bnettime_add_tzbias(t_bnettime bntime, int tzbias);
65     extern void bnettime_to_bn_long(t_bnettime in, bn_long * out);
66     extern void bn_long_to_bnettime(bn_long in, t_bnettime * out);
67    
68     #endif
69     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1