[vala/0.40] posix: Add to_string to NLItem and add NLTime
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] posix: Add to_string to NLItem and add NLTime
- Date: Sat, 24 Mar 2018 16:04:56 +0000 (UTC)
commit 7801b47d090f8bec9f4b132354a375abffa995c1
Author: Dr. Michael Lauer <mickey vanille-media de>
Date: Sat Mar 24 11:38:17 2018 +0100
posix: Add to_string to NLItem and add NLTime
Patch based on https://github.com/elementary/calendar/blob/master/vapi/posix-extension.vapi
Note: NLTime is actually a glibc'ism, but in the absence of a glibc.vapi, posix.vapi
is an acceptable place. See also bug #793443.
vapi/posix.vapi | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/vapi/posix.vapi b/vapi/posix.vapi
index 13a6c5d..3ab41d9 100644
--- a/vapi/posix.vapi
+++ b/vapi/posix.vapi
@@ -3072,7 +3072,22 @@ namespace Posix {
RADIXCHAR,
THOUSEP,
YESEXPR,
- NOEXPR
+ NOEXPR;
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_langinfo")]
+ public unowned string to_string ();
+ }
+
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_item", cprefix = "_NL_TIME_", has_type_id =
false)]
+ public enum NLTime {
+ WEEK_NDAYS,
+ WEEK_1STDAY,
+ WEEK_1STWEEK,
+ FIRST_WEEKDAY,
+ FIRST_WORKDAY,
+ CAL_DIRECTION,
+ TIMEZONE;
+ [CCode (cheader_filename = "langinfo.h", cname = "nl_langinfo")]
+ public unowned string to_string ();
}
[CCode (cheader_filename = "langinfo.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]