ROHC compression/decompression library
|
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 /** Macro that handles DLL export declarations gracefully */ 00034 #ifdef DLL_EXPORT /* passed by autotools on command line */ 00035 #define ROHC_EXPORT __declspec(dllexport) 00036 #else 00037 #define ROHC_EXPORT 00038 #endif 00039 00040 #include <stdint.h> 00041 00042 00043 /** 00044 * @brief A timestamp for the ROHC library 00045 * 00046 * Could be easily created from \e struct \e timespec on UNIX: 00047 * \code 00048 struct rohc_ts rohc_ts; 00049 struct timespec unix_ts; 00050 ... 00051 rohc_ts.sec = unix_ts.tv_sec; 00052 rohc_ts.nsec = unix_ts.tv_nsec; 00053 ... 00054 \endcode 00055 * 00056 * @ingroup rohc 00057 */ 00058 struct rohc_ts 00059 { 00060 uint64_t sec; /**< The seconds part of the timestamp */ 00061 uint64_t nsec; /**< The nanoseconds part of the timestamp */ 00062 }; 00063 00064 #ifdef __cplusplus 00065 } 00066 #endif 00067 00068 #endif /* ROHC_TIME_H */ 00069