$NetBSD: patch-am,v 1.1 2010/09/01 13:45:25 wiz Exp $ libassuan2 support from http://websvn.kde.org/?view=revision&revision=1078528 --- kleopatra/uiserver/assuancommand.h.orig 2009-11-13 10:58:28.000000000 +0000 +++ kleopatra/uiserver/assuancommand.h @@ -39,6 +39,8 @@ #include #include +#include + #include #include // for WId @@ -329,16 +331,16 @@ namespace Kleo { virtual boost::shared_ptr create() const = 0; virtual const char * name() const = 0; - typedef int(*_Handler)( assuan_context_s*, char *); + typedef gpg_error_t(*_Handler)( assuan_context_s*, char *); virtual _Handler _handler() const = 0; protected: - static int _handle( assuan_context_s*, char *, const char * ); + static gpg_error_t _handle( assuan_context_s*, char *, const char * ); }; template class GenericAssuanCommandFactory : public AssuanCommandFactory { /* reimp */ AssuanCommandFactory::_Handler _handler() const { return &GenericAssuanCommandFactory::_handle; } - static int _handle( assuan_context_s* _ctx, char * _line ) { + static gpg_error_t _handle( assuan_context_s* _ctx, char * _line ) { return AssuanCommandFactory::_handle( _ctx, _line, Command::staticName() ); } /* reimp */ boost::shared_ptr create() const { return make(); }