summaryrefslogtreecommitdiff
path: root/src/tools.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 22:16:24 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-09-26 23:49:27 +0200
commit87f58c2ed885d636229f7209fde883058433a1ce (patch)
tree92af07c4965a7a60469aa409765019d1e2d18a16 /src/tools.h
parentc4df9505cb1a6af6c1e7b12246b3d02f9e64597d (diff)
Print v4l parser position on error
Most parser functions take a **endp argument to indicate the caller where parsing has stopped. This is currently only used after parsing something successfully. This patch sets **endp to the erroneous position in the error case and prints its position after an error has occured. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/tools.h')
-rw-r--r--src/tools.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tools.h b/src/tools.h
index de06cb3..e64b37e 100644
--- a/src/tools.h
+++ b/src/tools.h
@@ -25,5 +25,8 @@
#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
#define FIELD_SIZEOF(t, f) (sizeof(((t*)0)->f))
+void media_print_streampos(struct media_device *media, const char *p,
+ const char *end);
+
#endif /* __TOOLS_H__ */