[vala] linux: Add bindings for rtc_time and fix the Rtc.WakeAlarm.time field
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] linux: Add bindings for rtc_time and fix the Rtc.WakeAlarm.time field
- Date: Tue, 20 Dec 2011 10:44:13 +0000 (UTC)
commit 865e50c86ea795b30595332c60d09983a77707ea
Author: Simon Busch <morphis gravedo de>
Date: Fri Nov 25 08:21:08 2011 +0100
linux: Add bindings for rtc_time and fix the Rtc.WakeAlarm.time field
vapi/linux.vapi | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 48b2ec8..99cd256 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -3151,11 +3151,24 @@ namespace Linux {
[CCode (cprefix = "", lower_case_cprefix = "")]
namespace Rtc {
+ [CCode (cname = "struct rtc_time", cheader_filename = "linux/rtc.h", has_type_id = false)]
+ public struct Time {
+ public int tm_sec;
+ public int tm_min;
+ public int tm_hour;
+ public int tm_mday;
+ public int tm_mon;
+ public int tm_year;
+ public int tm_wday;
+ public int tm_yday;
+ public int tm_isdst;
+ }
+
[CCode (cname = "struct rtc_wkalrm", has_type_id = false, cheader_filename = "linux/rtc.h")]
public struct WakeAlarm {
public char enabled;
public char pending;
- public Posix.tm time;
+ public Linux.Rtc.Time time;
}
[CCode (cheader_filename = "linux/rtc.h,sys/ioctl.h")]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]