curl: Split out the libcurl handle from the plugin handle
commitebf1ad8568b688c58c931f282db60afc2ccb981f
authorRichard W.M. Jones <rjones@redhat.com>
Sat, 4 Feb 2023 09:24:30 +0000 (4 09:24 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Feb 2023 21:11:32 +0000 (7 21:11 +0000)
tree4a6c3ce1ef61387f86fdf66b2c8fcfd666e1e3f3
parent72d84a23ae4f02a22a2b6ed29f44eb5867674b43
curl: Split out the libcurl handle from the plugin handle

In a future commit we will create a pool of libcurl handles.  In order
to prepare for that, split out the libcurl handle and associated
fields and buffers, from the plugin handle.  The plugin handle (for
the moment) contains a pointer to the libcurl handle so there is still
a 1-1 relationship between them.

This is mostly just refactoring/renaming, except for the callback and
scripts functions.  The callback functions (read_cb etc) only operate
on libcurl handles, so pass the libcurl handle (not the plugin handle)
as the opaque parameter.  The scripts also only care about libcurl
handles, so pass the libcurl handle to do_scripts.
plugins/curl/curl.c
plugins/curl/curldefs.h
plugins/curl/scripts.c