blob: 42edcef2f4b8cdba4ceef723f922e6a321ac1afa [file] [log] [blame]
Jeff Thompsonc868dd02013-09-24 15:50:47 -07001/**
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 Thompsone589c3f2013-10-12 17:30:50 -07008#define NDN_COMMON_H
Jeff Thompsonc868dd02013-09-24 15:50:47 -07009
Yingdi Yu61ec2722014-01-20 14:22:32 -080010#include <ndn-cpp-dev/ndn-cpp-config.h>
Jeff Thompsonc868dd02013-09-24 15:50:47 -070011#include <stdint.h>
Jeff Thompson25b4e612013-10-10 16:03:24 -070012// TODO: Is stddef.h portable?
Jeff Thompson32a23332013-10-07 18:39:00 -070013#include <stddef.h>
Jeff Thompsonc868dd02013-09-24 15:50:47 -070014
Jeff Thompson9a8e82f2013-10-17 14:13:43 -070015#ifdef __cplusplus
16extern "C" {
17#endif
18
19/**
20 * A time interval represented as the number of milliseconds.
21 */
Alexander Afanasyevee940312013-12-24 19:43:15 -080022typedef int64_t ndn_Milliseconds;
Jeff Thompson9a8e82f2013-10-17 14:13:43 -070023
24/**
25 * The calendar time represented as the number of milliseconds since 1/1/1970.
26 */
Alexander Afanasyevee940312013-12-24 19:43:15 -080027typedef int64_t ndn_MillisecondsSince1970;
Jeff Thompson9a8e82f2013-10-17 14:13:43 -070028
29#ifdef __cplusplus
30}
31#endif
32
Jeff Thompsonc868dd02013-09-24 15:50:47 -070033#endif