# #
#############################################################################*/
+#include <pakfire/buildservice.h>
#include <pakfire/ctx.h>
#include "command.h"
static const char* doc = "Lists all uploads";
int cli_upload_list(void* data, int argc, char* argv[]) {
- struct pakfire_ctx* ctx = data;
+ struct pakfire_buildservice* service = NULL;
int r;
+ struct pakfire_ctx* ctx = data;
+
// Parse the command line
r = cli_parse(NULL, NULL, NULL, doc, NULL, argc, argv, NULL);
if (r)
goto ERROR;
+ // Connect to the build service
+ r = pakfire_buildservice_create(&service, ctx);
+ if (r)
+ goto ERROR;
+
// XXX TODO
ERROR:
+ if (service)
+ pakfire_buildservice_unref(service);
+
return r;
}