Skip to content

message: LibBalsaMessage cleanup

Peter Bloomfield requested to merge 70-libbalsa-message-structure into master
  • Declare LibBalsaMessage:msgno as guint instead of glong; fix the fallout and remove redundant casts.
  • Declare LibBalsaMessage:length as gint64 instead of glong, and revise accessors. Also use strtoll() to populate it instead of atoi(), and replace the value with -1 on error.
  • Remove MESSAGE_COPY_CONTENT macro and the code that was compiled conditionally on !defined(MESSAGE_COPY_CONTENT).
  • Reorder LibBalsaMessage to improve packing and reduce padding, and remove the unused member LibBalsaMessage:updated.

Closes #70 (closed)

Merge request reports

Loading