[vala/0.8] linux: add reboot(2) and assorted commands
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.8] linux: add reboot(2) and assorted commands
- Date: Wed, 21 Apr 2010 13:14:45 +0000 (UTC)
commit 50292b9d06ce0408e42151c1e02233f62e47f9b2
Author: Michael 'Mickey' Lauer <mickey vanille-media de>
Date: Mon Apr 19 19:20:15 2010 +0200
linux: add reboot(2) and assorted commands
vapi/linux.vapi | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/vapi/linux.vapi b/vapi/linux.vapi
index 9a1bd92..168ea2c 100644
--- a/vapi/linux.vapi
+++ b/vapi/linux.vapi
@@ -772,6 +772,18 @@ namespace Linux {
Posix.termios? termp,
winsize? winp);
+ [CCode (cprefix = "RB_", cheader_filename = "unistd.h,sys/reboot.h")]
+ public enum RebootCommands {
+ AUTOBOOT,
+ HALT_SYSTEM,
+ ENABLE_CAD,
+ DISABLE_CAD,
+ POWER_OFF
+ }
+
+ [CCode (cheader_filename = "unistd.h,sys/reboot.h")]
+ public int reboot (RebootCommands cmd);
+
[CCode (cprefix = "CLONE_", cheader_filename = "sched.h")]
public enum CloneFlags {
FILES,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]