diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-01-12 08:15:12 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-01-13 13:35:42 +1000 |
commit | 2ff009a45dd59caf8747b5bbf0e16358a1a741a1 (patch) | |
tree | fa435cc618b371c7115e26041325532529d053e8 | |
parent | d28da2ca4ea8f5a51d97980b9e9cc184db5e5171 (diff) |
Add a comment to clarify what the prop parameter is
prop isn't the full property line, just the value.
And document the return value too while we're at it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/libinput-util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libinput-util.c b/src/libinput-util.c index 923e1162..c16de1bf 100644 --- a/src/libinput-util.c +++ b/src/libinput-util.c @@ -131,6 +131,9 @@ ratelimit_test(struct ratelimit *r) * use a reasonable default instead. If the property contains multiple DPI * settings but none flagged as default, we return the last because we're * lazy and that's a silly way to set the property anyway. + * + * @param prop The value of the udev property (without the MOUSE_DPI=) + * @return The default dpi value on success, 0 on error */ int parse_mouse_dpi_property(const char *prop) |