diff options
author | Neal H. Walfield <neal@pep.foundation> | 2019-05-15 22:46:37 +0200 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2019-05-15 22:46:37 +0200 |
commit | 7a40bcee6adae824b685d2a40a48494f186108d9 (patch) | |
tree | 7c4c35dabd1667e10046af2d7c35d292036e9ac5 /openpgp-ffi/include/sequoia/openpgp | |
parent | 1687fa2e4fda73791d53134cb5541fa0a9412268 (diff) |
openpgp-ffi: Add some bindings for Literal data packets
Diffstat (limited to 'openpgp-ffi/include/sequoia/openpgp')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp/packet.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp/packet.h b/openpgp-ffi/include/sequoia/openpgp/packet.h index 778deabe..8035b0c3 100644 --- a/openpgp-ffi/include/sequoia/openpgp/packet.h +++ b/openpgp-ffi/include/sequoia/openpgp/packet.h @@ -62,4 +62,15 @@ const char *pgp_tag_to_string (pgp_tag_t tag); /*/ pgp_signature_t pgp_packet_ref_signature (pgp_packet_t p); +/*/ +/// Given a packet references the contained literal data packet, if +/// any. +/// +/// If the Packet is not of the `Packet::Literal` variant, this +/// function returns `NULL`. Objects returned from this function must +/// be deallocated using `pgp_literal_data_free` even though they only +/// reference the given packet. +/*/ +pgp_literal_t pgp_packet_ref_literal (pgp_packet_t p); + #endif |