From: Michael 'Mickey' Lauer Date: Mon, 19 Apr 2010 17:20:15 +0000 (+0200) Subject: linux: add reboot(2) and assorted commands X-Git-Tag: 0.8.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50292b9d06ce0408e42151c1e02233f62e47f9b2;p=thirdparty%2Fvala.git linux: add reboot(2) and assorted commands --- diff --git a/vapi/linux.vapi b/vapi/linux.vapi index 9a1bd9217..168ea2c9e 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,