diff plugins/perl/common/Util.xs @ 13104:e1e5462b7d81

[gaim-migrate @ 15466] Rework lots of date parsing. I either introduced a whole lot of bugs, or I've made sure all dates are localized properly now. Only time will tell which it is... ;) committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 02 Feb 2006 19:50:51 +0000
parents 69b3d5cbd2b1
children fcde3faa1f57
line wrap: on
line diff
--- a/plugins/perl/common/Util.xs	Thu Feb 02 19:39:12 2006 +0000
+++ b/plugins/perl/common/Util.xs	Thu Feb 02 19:50:51 2006 +0000
@@ -51,6 +51,18 @@
 	const char *path
 	int mode
 
+const char *
+gaim_date_format_full(time)
+	time_t time
+
+const char *
+gaim_date_format_long(tm)
+	const struct tm *tm
+
+const char *
+gaim_date_format_short(tm)
+	const struct tm *tm
+
 gboolean
 gaim_email_is_valid(address)
 	const char *address
@@ -67,7 +79,7 @@
 gaim_home_dir()
 
 gboolean
-gaim_markup_extract_info_field(str, len, dest, start_token, skip, end_token, check_value, no_value_token, display_name, is_link, link_prefix)
+gaim_markup_extract_info_field(str, len, dest, start_token, skip, end_token, check_value, no_value_token, display_name, is_link, link_prefix, format_cb)
 	const char *str
 	int len
 	GString *dest
@@ -79,6 +91,7 @@
 	const char *display_name
 	gboolean is_link
 	const char *link_prefix
+	Gaim::Util::InfoFieldFormatCallback format_cb
 
 gboolean
 gaim_markup_find_tag(needle, haystack, start, end, attributes)
@@ -188,13 +201,6 @@
 gaim_strdup_withhtml(src)
 	const gchar *src
 
-size_t
-gaim_strftime(s, max, format, tm)
-	char *s
-	size_t max
-	const char *format
-	const struct tm *tm
-
 gchar *
 gaim_strreplace(string, delimiter, replacement)
 	const char *string
@@ -215,6 +221,10 @@
 	int sec
 
 const char *
+gaim_time_format(tm)
+	const struct tm *tm
+
+const char *
 gaim_unescape_filename(str)
 	const char *str
 
@@ -242,6 +252,9 @@
 const char *
 gaim_user_dir()
 
+const char *
+gaim_utf8_strftime(const char *format, const struct tm *tm);
+
 void
 gaim_util_set_user_dir(dir)
 	const char *dir