msg
1.12.11devel
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libsofia-sip-ua
msg
sofia-sip
msg_date.h
Go to the documentation of this file.
1
/*
2
* This file is part of the Sofia-SIP package
3
*
4
* Copyright (C) 2005 Nokia Corporation.
5
*
6
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public License
10
* as published by the Free Software Foundation; either version 2.1 of
11
* the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful, but
14
* WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
21
* 02110-1301 USA
22
*
23
*/
24
25
#ifndef MSG_DATE_H
26
27
#define MSG_DATE_H
28
39
#ifndef SU_TYPES_H
40
#include <
sofia-sip/su_types.h
>
41
#endif
42
43
SOFIA_BEGIN_DECLS
44
45
#ifndef MSG_TIME_T_DEFINED
46
#define MSG_TIME_T_DEFINED
47
48
typedef
unsigned
long
msg_time_t
;
49
#endif
50
51
#ifndef MSG_TIME_MAX
52
53
#define MSG_TIME_MAX ((msg_time_t)ULONG_MAX)
54
#endif
55
56
/* Current time. */
57
SOFIAPUBFUN
msg_time_t
msg_now
(
void
);
58
59
SOFIAPUBFUN
issize_t
msg_date_delta_d
(
char
const
**inout_string,
60
msg_time_t
*return_date,
61
msg_time_t
*return_delta);
62
63
SOFIAPUBFUN
issize_t
msg_delta_d
(
char
const
**ss,
msg_time_t
*return_delta);
64
SOFIAPUBFUN
issize_t
msg_delta_e
(
char
b[], isize_t bsiz,
msg_time_t
delta);
65
67
SOFIAPUBFUN
issize_t
msg_date_d
(
char
const
**ss,
msg_time_t
*date);
68
70
SOFIAPUBFUN
issize_t
msg_date_e
(
char
b[], isize_t bsiz,
msg_time_t
date);
71
72
enum
{ msg_date_string_size = 29 };
73
74
SOFIA_END_DECLS
75
76
#endif
/* !defined(MSG_DATE_H) */
Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.