File indexing completed on 2024-05-26 05:24:35

0001 /*
0002     utils/scdaemon.h
0003 
0004     This file is part of libkleopatra
0005     SPDX-FileCopyrightText: 2021 g10 Code GmbH
0006     SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #pragma once
0012 
0013 #include "kleo_export.h"
0014 
0015 #include <string>
0016 #include <vector>
0017 
0018 namespace GpgME
0019 {
0020 class Error;
0021 }
0022 
0023 namespace Kleo
0024 {
0025 /** This namespace collects higher-level functions for retrieving information
0026  *  from the GnuPG smart card daemon. */
0027 namespace SCDaemon
0028 {
0029 
0030 /** Returns the list of available smart card readers. If an error occurred,
0031  *  then @p err provides details.
0032  *  The returned strings are mostly useful for configuring the reader to use
0033  *  via the reader-port option of scdaemon.
0034  */
0035 KLEO_EXPORT std::vector<std::string> getReaders(GpgME::Error &err);
0036 
0037 }
0038 }