[Patch] libnetclient: use G_DECLARE*

Albrecht Dreß <[email protected]> Thu, 30 May 2019 14:52:42 +0200
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <[email protected]>
Hi all,

attached is a patch which implements the various libnetclient objects (pop3, smtp, sio) using the modern G_DECLARE_*_TYPE() macros.  Furthermore, it fixes a wrong assignment which did /always/ enable POP3 pipelining (RFC 2449, sect. 6.6) irrespective of the server capability announcement.

Best,
Albrecht.

---
Patch details:
- libnetclient/net-client-pop.[ch]: use G_DECLARE_FINAL_TYPE(), and drop storing the private object data in a separate structure; net_client_pop_get_capa(): enable pipelining only if included in the server's capabilities
- libnetclient/net-client-siobuf.[ch], libnetclient/net-client-smtp.[ch]: use G_DECLARE_FINAL_TYPE(), and drop storing the private object data in a separate structure
- libnetclient/net-client-utils.h: suppress Flexelint 9.00 false-positive
- libnetclient/net-client.[hc]: use G_DECLARE_DERIVABLE_TYPE(); use net_client_get_instance_private() to access private data

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list
libnetclient-g-decl.diff.bz2 (application/x-bzip, 10 KB) - not displayed
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEcCEPemLFTtyGf4zATKlvDmfn2fgFAlzv0hoACgkQTKlvDmfn
2fgWwQf8CsMAExMsMH/IdB+Ig4EzWTHw5iF4If6l4WyQ3UzP+nQjbEf4xTpxeiEI
+uHrq7j5fieX9hXrF64WzSPG093bL+0aBg7upmD+fHcLf3WkZOtX+vMc/bAyBHHg
FUsbSxhie6eIWV+xGdWfwW9P5w5Ls5CrCI/sD20Jan6K8dw29tCyPIzFLphsPL4n
Zhk7HEHGZL0p/9J9EKtwpFRMV2shJ/xfLlYQAORY049y3wY3ruxbT7UcF3EZx/OP
ov64S6hqxnEec9sgCaknyHopr+BZEGKVlNlGzp78N+Gjxc28OkRh5wzK3FcvktON
hFSAbvbMG5tMl+YtK64IszaMcVmfjg==
=J/0T
-----END PGP SIGNATURE-----