#include <stdlib.h>
#include <sys/epoll.h>
+#include <pakfire/buildservice.h>
#include <pakfire/ctx.h>
#include <pakfire/daemon.h>
-#include <pakfire/httpclient.h>
#define EPOLL_MAX_EVENTS 8
struct pakfire_ctx* ctx;
int nrefs;
- // A HTTP Client
- struct pakfire_httpclient* httpclient;
+ // Pakfire Build Service
+ struct pakfire_buildservice* service;
};
static void pakfire_daemon_free(struct pakfire_daemon* daemon) {
- if (daemon->httpclient)
- pakfire_httpclient_unref(daemon->httpclient);
+ if (daemon->service)
+ pakfire_buildservice_unref(daemon->service);
if (daemon->ctx)
pakfire_ctx_unref(daemon->ctx);
free(daemon);
// Initialize the reference counter
d->nrefs = 1;
- // Setup the HTTP client
- r = pakfire_httpclient_create(&d->httpclient, d->ctx);
+ // Connect to the buildservice
+ r = pakfire_buildservice_create(&d->service, d->ctx);
if (r)
goto ERROR;