[vala] linux: add reboot(2) and assorted commands
- From: Michael Lauer <mlauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] linux: add reboot(2) and assorted commands
- Date: Mon, 19 Apr 2010 17:20:37 +0000 (UTC)
commit a5ef3b9761dbd0f97eb63df202f5671375daf647
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]