[Libguestfs] [PATCH v3 2/8] curl: Change the API to use an abstract data type.