Changeset View
Changeset View
Standalone View
Standalone View
b/doc/gpgme.texi
Context not available. | |||||
@subsection Data Buffer Meta-Data | @subsection Data Buffer Meta-Data | ||||
@cindex data buffer, meta-data | @cindex data buffer, meta-data | ||||
@cindex data buffer, file name | @cindex data buffer, file name | ||||
@cindex data buffer, file size | |||||
@cindex data buffer, encoding | @cindex data buffer, encoding | ||||
@deftypefun {char *} gpgme_data_get_file_name (@w{gpgme_data_t @var{dh}}) | @deftypefun {char *} gpgme_data_get_file_name (@w{gpgme_data_t @var{dh}}) | ||||
Context not available. | |||||
@end deftypefun | @end deftypefun | ||||
@deftypefun {unsigned long long} gpgme_data_get_file_size (@w{gpgme_data_t @var{dh}}) | |||||
The function @code{gpgme_data_get_file_size} returns the manually | |||||
set file size associated with the data object. | |||||
It does not return the actual size of file based data types but | |||||
instead only what has been set with @code{gpgme_data_set_file_size} | |||||
If no error occurs, the set file size value is returned. | |||||
Otherwise, or if it was not set @code{0} will be returned. | |||||
@end deftypefun | |||||
@deftypefun gpgme_error_t gpgme_data_set_file_size (@w{gpgme_data_t @var{dh}}, @w{unsigned long long@var{file_size}}) | |||||
The function @code{gpgme_data_set_file_size} sets the file size | |||||
associated with the data object. The | |||||
file size will be passed to gpg and can be used for progress calculations. | |||||
The function returns the error code @code{GPG_ERR_INV_VALUE} if | |||||
@var{dh} is not a valid pointer. | |||||
@end deftypefun | |||||
@deftp {Data type} {enum gpgme_data_encoding_t} | @deftp {Data type} {enum gpgme_data_encoding_t} | ||||
@tindex gpgme_data_encoding_t | @tindex gpgme_data_encoding_t | ||||
The @code{gpgme_data_encoding_t} type specifies the encoding of a | The @code{gpgme_data_encoding_t} type specifies the encoding of a | ||||
Context not available. |