Changes from 2.2 to 2.4

Changes from 2.2 to 2.4 — Changes made between version 2.2 and version 2.4

Changes from 2.2 to 2.4

See also the PORTING document in the toplevel GMime source directory.

There are no incompatible changes between 2.2 and 2.4 if you stayed away from the functions marked as deprecated.

GMime 2.4's API is identical to GMime 2.2 except that ALL public interfaces that used to use off_t in GMime 2.2 now use gint64 so that the API and ABI do not change based on whether or not large file support is supported.

Deprecated Functions removed from GMime 2.4

  • Ref and Unref Functions

    g_mime_stream_ref and g_mime_object_ref have been removed. You should replace these calls with g_object_ref instead.

    g_mime_stream_unref and g_mime_object_unref have been removed. You should replace these calls with g_object_unref instead.

  • ToString Functions

    g_mime_message_to_string and g_mime_part_to_string have been removed. You should replace these calls with g_mime_object_to_string instead.

  • WriteToStream Functions

    g_mime_message_write_to_stream and g_mime_part_write_to_stream have been removed. You should replace these calls with g_mime_object_write_to_stream instead.

Newly Deprecated Functions in GMime 2.4

GMimeCipherContext methods have been renamed from g_mime_cipher_* to g_mime_cipher_context_*. The 2.2 to 2.4 name mapping is as follows:

  • g_mime_cipher_hash_id has been renamed to g_mime_cipher_context_hash_id
  • g_mime_cipher_hash_name has been renamed to g_mime_cipher_context_hash_name
  • g_mime_cipher_sign has been renamed to g_mime_cipher_context_sign
  • g_mime_cipher_verify has been renamed to g_mime_cipher_context_verify
  • g_mime_cipher_encrypt has been renamed to g_mime_cipher_context_encrypt
  • g_mime_cipher_decrypt has been renamed to g_mime_cipher_context_decrypt
  • g_mime_cipher_import_keys has been renamed to g_mime_cipher_context_import_keys
  • g_mime_cipher_export_keys has been renamed to g_mime_cipher_context_export_keys