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 | |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 10 | #include "../ndn-cpp-config.h" |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 11 | #include <stdint.h> |
Jeff Thompson | 25b4e61 | 2013-10-10 16:03:24 -0700 | [diff] [blame] | 12 | // TODO: Is stddef.h portable? |
Jeff Thompson | 32a2333 | 2013-10-07 18:39:00 -0700 | [diff] [blame] | 13 | #include <stddef.h> |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 14 | |
Jeff Thompson | 9a8e82f | 2013-10-17 14:13:43 -0700 | [diff] [blame] | 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
| 19 | /** |
| 20 | * A time interval represented as the number of milliseconds. |
| 21 | */ |
| 22 | typedef double ndn_Milliseconds; |
| 23 | |
| 24 | /** |
| 25 | * The calendar time represented as the number of milliseconds since 1/1/1970. |
| 26 | */ |
| 27 | typedef double ndn_MillisecondsSince1970; |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } |
| 31 | #endif |
| 32 | |
Jeff Thompson | c868dd0 | 2013-09-24 15:50:47 -0700 | [diff] [blame] | 33 | #endif |