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/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 37e34071..1f951039 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -103,8 +103,9 @@ endif # unresolved symbols to the thread module. main_sources = \ util.h conversion.c get-env.c context.h ops.h \ + parsetlv.c parsetlv.h \ data.h data.c data-fd.c data-stream.c data-mem.c data-user.c \ - data-compat.c \ + data-compat.c data-identify.c \ signers.c sig-notation.c \ wait.c wait-global.c wait-private.c wait-user.c wait.h \ op-support.c \ -- cgit