]> git.tdb.fi Git - libs/core.git/blobdiff - source/time/rawtime_private.h
Isolate platform-dependent RawTime conversion functions to a private header
[libs/core.git] / source / time / rawtime_private.h
diff --git a/source/time/rawtime_private.h b/source/time/rawtime_private.h
new file mode 100644 (file)
index 0000000..566d5a6
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef MSP_TIME_RAWTIME_PRIVATE_H_
+#define MSP_TIME_RAWTIME_PRIVATE_H_
+
+#ifndef WIN32
+#include <sys/time.h>
+#endif
+#include "rawtime.h"
+
+namespace Msp {
+namespace Time {
+
+#ifndef WIN32
+// Internal conversion utilities, not intended for public use
+timeval rawtime_to_timeval(RawTime);
+timespec rawtime_to_timespec(RawTime);
+#endif
+
+} // namespace Time
+} // namespace Msp
+
+#endif