/soc/2015/jgeboski/facebook: 5727ffb502c7: facebook: added missi...

James Geboski <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: 5727ffb502c70fb19554df4b6b43db6f83e6aabe
Author:	 James Geboski <[email protected]>
Date:	 2015-08-21 01:18 -0400
Branch:	 facebook
URL: https://hg.pidgin.im/soc/2015/jgeboski/facebook/rev/5727ffb502c7

Description:

facebook: added missing g_get_real_time() compat function

diffstat:

 libpurple/glibcompat.h |  9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diffs (19 lines):

diff --git a/libpurple/glibcompat.h b/libpurple/glibcompat.h
--- a/libpurple/glibcompat.h
+++ b/libpurple/glibcompat.h
@@ -144,6 +144,15 @@ static inline gint64 g_get_monotonic_tim
 	return ((gint64)time_s.tv_sec << 32) | time_s.tv_usec;
 }
 
+static inline gint64 g_get_real_time(void)
+{
+	GTimeVal time_s;
+
+	g_get_current_time(&time_s);
+
+	return (((gint64)time_s.tv_sec) * 1000000) + time_s.tv_usec;
+}
+
 static inline void g_list_free_full(GList *list, GDestroyNotify free_func)
 {
 	g_list_foreach(list, (GFunc)free_func, NULL);

_______________________________________________
Commits mailing list
[email protected]
https://pidgin.im/cgi-bin/mailman/listinfo/commits
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.