From 54c2170178d1bf59cc5e1f50caefab4d677676ed Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 14 Mar 2008 17:18:48 +0100 Subject: [PATCH] Add Auto value to Position --- common/util.c | 2 ++ common/util.h | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/common/util.c b/common/util.c index d09e1f7a7..4b90201f9 100644 --- a/common/util.c +++ b/common/util.c @@ -107,6 +107,8 @@ position_get_from_str(const char *pos) return Right; else if(!a_strncmp(pos, "left", 4)) return Left; + else if(!a_strncmp(pos, "auto", 4)) + return Auto; return Off; } diff --git a/common/util.h b/common/util.h index 93220853d..eeb5a4d08 100644 --- a/common/util.h +++ b/common/util.h @@ -33,7 +33,8 @@ typedef enum Top, Bottom, Right, - Left + Left, + Auto } Position; /** Link a name to a function */