00001 /* 00002 * Copyright 2013,2014 Didier Barvaux 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 2.1 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00017 */ 00018 00019 /** 00020 * @file rohc_time.h 00021 * @brief ROHC public definitions related to time 00022 * @author Didier Barvaux <didier@barvaux.org> 00023 */ 00024 00025 #ifndef ROHC_TIME_H 00026 #define ROHC_TIME_H 00027 00028 #ifdef __cplusplus 00029 extern "C" 00030 { 00031 #endif 00032 00033 #include <stdint.h> 00034 00035 00036 /** 00037 * @brief A timestamp for the ROHC library 00038 * 00039 * Could be easily created from \e struct \e timespec on UNIX: 00040 * \code 00041 struct rohc_ts rohc_ts; 00042 struct timespec unix_ts; 00043 ... 00044 rohc_ts.sec = unix_ts.tv_sec; 00045 rohc_ts.nsec = unix_ts.tv_nsec; 00046 ... 00047 \endcode 00048 * 00049 * @ingroup rohc 00050 */ 00051 struct rohc_ts 00052 { 00053 uint64_t sec; /**< The seconds part of the timestamp */ 00054 uint64_t nsec; /**< The nanoseconds part of the timestamp */ 00055 }; 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif /* ROHC_TIME_H */ 00062
1.6.1