Changeset View
Changeset View
Standalone View
Standalone View
b/src/data.c
Context not available. | |||||
return dh->file_name; | return dh->file_name; | ||||
} | } | ||||
/* Set the file size associated with the data object with handle DH to | |||||
FILE_SIZE. */ | |||||
gpgme_error_t | |||||
gpgme_data_set_file_size (gpgme_data_t dh, unsigned long long file_size) | |||||
{ | |||||
TRACE_BEG1 (DEBUG_DATA, "gpgme_data_set_file_size", dh, | |||||
"file_size=%llu", file_size); | |||||
if (!dh) | |||||
return TRACE_ERR (gpg_error (GPG_ERR_INV_VALUE)); | |||||
dh->file_size = file_size; | |||||
return TRACE_ERR (0); | |||||
} | |||||
/* Get the file size associated with the data object with handle DH, | |||||
or 0 if there is none. */ | |||||
unsigned long long | |||||
gpgme_data_get_file_size (gpgme_data_t dh) | |||||
{ | |||||
if (!dh) | |||||
{ | |||||
TRACE (DEBUG_DATA, "gpgme_data_get_file_size", dh); | |||||
return 0; | |||||
} | |||||
TRACE1 (DEBUG_DATA, "gpgme_data_get_file_size", dh, | |||||
"dh->file_size=%llu", dh->file_size); | |||||
return dh->file_size; | |||||
} | |||||
␌ | ␌ | ||||
/* Functions to support the wait interface. */ | /* Functions to support the wait interface. */ | ||||
Context not available. |