From 8579091c4f6a36e6bb06fcfbd147a776166fd3ea Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 9 Aug 2013 19:19:26 +0200 Subject: Add function gpgme_data_identify. * src/gpgme.h.in (gpgme_data_type_t): New. (gpgme_data_identify): New prototype. * src/data-identify.c: New. * src/parsetlv.c, src/parsetlv.h: New. Take from gpa. * src/libgpgme.vers, src/gpgme.def: Add gpgme_data_identify. * src/gpgme-tool.c (status): Add STATUS_IDENTIFY_RESULT. (gt_identify): New. (cmd_identify): New. (hlp_passwd): Move close to cmd_passwd. -- It is often useful to have a way to identify the data which needs processing. This is such a common task that it makes sense to implement this in gpgme to avoid diverging implementations. --- src/gpgme.def | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gpgme.def') diff --git a/src/gpgme.def b/src/gpgme.def index 7610d37e..0478cb62 100644 --- a/src/gpgme.def +++ b/src/gpgme.def @@ -211,5 +211,7 @@ EXPORTS gpgme_signers_count @160 + gpgme_data_identify @161 + ; END -- cgit v1.2.3