#include <pakfire/ctx.h>
#include <pakfire/xfer.h>
-int pakfire_httpclient_create(struct pakfire_httpclient** downloader,
+int pakfire_httpclient_create(struct pakfire_httpclient** client,
struct pakfire_ctx* ctx, sd_event* loop);
-struct pakfire_httpclient* pakfire_httpclient_ref(struct pakfire_httpclient* downloader);
-struct pakfire_httpclient* pakfire_httpclient_unref(struct pakfire_httpclient* downloader);
+struct pakfire_httpclient* pakfire_httpclient_ref(struct pakfire_httpclient* client);
+struct pakfire_httpclient* pakfire_httpclient_unref(struct pakfire_httpclient* client);
sd_event* pakfire_httpclient_loop(struct pakfire_httpclient* client);
int pakfire_httpclient_enqueue_xfer(
- struct pakfire_httpclient* downloader, struct pakfire_xfer* xfer);
-int pakfire_httpclient_remove_xfer(struct pakfire_httpclient* client,
- struct pakfire_xfer* xfer);
+ struct pakfire_httpclient* client, struct pakfire_xfer* xfer);
+int pakfire_httpclient_remove_xfer(
+ struct pakfire_httpclient* client, struct pakfire_xfer* xfer);
-int pakfire_httpclient_run(struct pakfire_httpclient* downloader, const char* title);
+int pakfire_httpclient_run(struct pakfire_httpclient* client, const char* title);
#endif /* PAKFIRE_PRIVATE */
#endif /* PAKFIRE_HTTPCLIENT_H */