summaryrefslogtreecommitdiff
path: root/wsutil/nstime.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-04-20 13:41:07 -0700
committerGuy Harris <guy@alum.mit.edu>2015-04-20 20:41:38 +0000
commit94dc9cd113f5263a55ee86855a4642991f87a351 (patch)
tree4fcd83ef7a87f0fd5a7f6c490d548023940ff332 /wsutil/nstime.h
parent4e9ff477d90bad4ecbdaa9d39af872cd21eda858 (diff)
downloadwireshark-94dc9cd113f5263a55ee86855a4642991f87a351.tar.gz
Have a common routine to convert FILETIME to nstime_t.
We had several copies of that code; put it into a filetime_to_nstime() routine in wsutil, and call that common routine instead. Change-Id: I1eb5579c36c129ff8d23f9212285ab3f63be0f43 Reviewed-on: https://code.wireshark.org/review/8142 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wsutil/nstime.h')
-rw-r--r--wsutil/nstime.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/wsutil/nstime.h b/wsutil/nstime.h
index a74457c8b6..c72daa19c6 100644
--- a/wsutil/nstime.h
+++ b/wsutil/nstime.h
@@ -102,6 +102,10 @@ WS_DLL_PUBLIC double nstime_to_msec(const nstime_t *nstime);
/** converts nstime to double, time base is seconds */
WS_DLL_PUBLIC double nstime_to_sec(const nstime_t *nstime);
+/** converts Windows FILETIME to nstime, returns TRUE on success,
+ FALSE on failure */
+WS_DLL_PUBLIC gboolean filetime_to_nstime(nstime_t *nstime, guint64 filetime);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */