Home GnuPG

On Windows, use gpgme_off_t and gpgme_ssize_t in the API

Description

On Windows, use gpgme_off_t and gpgme_ssize_t in the API

* src/dataprovider.cpp (QByteArrayDataProvider::read,
QByteArrayDataProvider::write, QByteArrayDataProvider::seek,
QIODeviceDataProvider::read, QIODeviceDataProvider::write,
QIODeviceDataProvider::seek): Use gpgme_off_t and gpgme_ssize_t
instead of off_t and ssize_t everywhere.
* src/dataprovider.h (QByteArrayDataProvider::read,
QByteArrayDataProvider::write, QByteArrayDataProvider::seek,
QIODeviceDataProvider::read, QIODeviceDataProvider::write,
QIODeviceDataProvider::seek): On Windows, use gpgme_off_t and
gpgme_ssize_t in the API.
(class QByteArrayDataProvider): On Windows, change data type of mOff to
gpgme_off_t.
* src/filelistdataprovider.cpp (FileListDataProvider::read,
FileListDataProvider::write, FileListDataProvider::seek): Use
gpgme_off_t and gpgme_ssize_t instead of off_t and ssize_t everywhere.
* src/filelistdataprovider.h (FileListDataProvider::read,
FileListDataProvider::write, FileListDataProvider::seek): On Windows,
use gpgme_off_t and gpgme_ssize_t in the API.

This adapts the API to the API of GpgME++'s DataProvider which also
uses gpgme_off_t and gpgme_ssize_t on Windows and which otherwise
uses off_t and ssize_t. Internally, we always use the gpgme_* types
since they are aliases of the POSIX types on non-Windows.

Details

Provenance
ikloeckerAuthored on Tue, May 27, 4:25 PM
Parents
rGPGMEQT7e8932469e1d: Sort includes and macro invocations alphabetically
Branches
Unknown
Tags
Unknown
References
HEAD -> master