From 066cf5144595638b8e70b97add195c7e648ecca3 Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Wed, 12 Jun 2013 15:43:17 +0200 Subject: uterm: vt: add uterm_vt_get_num() helper This helper returns the VT-number for the given VT if, and only if, it is a real VT. In all other cases 0 is returned. Signed-off-by: David Herrmann --- src/uterm_vt.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/uterm_vt.h') diff --git a/src/uterm_vt.h b/src/uterm_vt.h index 0362bbe..1370c12 100644 --- a/src/uterm_vt.h +++ b/src/uterm_vt.h @@ -85,5 +85,6 @@ int uterm_vt_activate(struct uterm_vt *vt); int uterm_vt_deactivate(struct uterm_vt *vt); void uterm_vt_retry(struct uterm_vt *vt); unsigned int uterm_vt_get_type(struct uterm_vt *vt); +unsigned int uterm_vt_get_num(struct uterm_vt *vt); #endif /* UTERM_UTERM_VT_H */ -- cgit v1.2.3