From 4df2423a947bcd3f024cc3d3a1a315a8dc428598 Mon Sep 17 00:00:00 2001 From: The Android Open Source Project Date: Thu, 5 Mar 2009 14:34:35 -0800 Subject: auto import from //depot/cupcake/@136594 --- cmds/dumpstate/dumpstate.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cmds/dumpstate/dumpstate.h') diff --git a/cmds/dumpstate/dumpstate.h b/cmds/dumpstate/dumpstate.h index 4e88e4b..33127fb 100644 --- a/cmds/dumpstate/dumpstate.h +++ b/cmds/dumpstate/dumpstate.h @@ -43,6 +43,15 @@ run_command(&c, TIMEOUT); \ } +#define EXEC_TIMEOUT(cmd, tmout)\ +{ \ + static struct Command c = { \ + "/system/bin/" cmd, \ + { cmd, 0 } \ + }; \ + run_command(&c, tmout); \ +} + #define EXEC_XBIN(cmd) \ { \ static struct Command c = { \ -- cgit v1.1