Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 1 | /** |
| 2 | * Copyright (C) 2013 Regents of the University of California. |
| 3 | * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
| 4 | * See COPYING for copyright and distribution information. |
| 5 | */ |
| 6 | |
| 7 | #ifndef NDN_COMMON_H |
Jeff Thompson | e589c3f | 2013-10-12 17:30:50 -0700 | [diff] [blame] | 8 | #define NDN_COMMON_H |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 9 | |
Alexander Afanasyev | b1d6746 | 2013-11-18 20:25:00 -0800 | [diff] [blame] | 10 | #include <ndn-cpp/ndn-cpp-config.h> |
| 11 | |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 12 | #include <stdint.h> |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 13 | // TODO: Is stddef.h portable? |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 14 | #include <stddef.h> |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 15 | |
Jeff Thompson | 9a8e82f | 2013-10-17 14:13:43 -0700 | [diff] [blame] | 16 | #ifdef __cplusplus |
| 17 | extern "C" { |
| 18 | #endif |
| 19 | |
| 20 | /** |
| 21 | * A time interval represented as the number of milliseconds. |
| 22 | */ |
| 23 | typedef double ndn_Milliseconds; |
| 24 | |
| 25 | /** |
| 26 | * The calendar time represented as the number of milliseconds since 1/1/1970. |
| 27 | */ |
| 28 | typedef double ndn_MillisecondsSince1970; |
| 29 | |
| 30 | #ifdef __cplusplus |
| 31 | } |
| 32 | #endif |
| 33 | |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 34 | #endif |