]>
git.ipfire.org Git - pakfire.git/blob - src/libpakfire/include/pakfire/buildservice.h
1 /*#############################################################################
3 # Pakfire - The IPFire package management system #
4 # Copyright (C) 2023 Pakfire development team #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
19 #############################################################################*/
21 #ifndef PAKFIRE_BUILDSERVICE_H
22 #define PAKFIRE_BUILDSERVICE_H
24 struct pakfire_buildservice
;
28 #include <pakfire/ctx.h>
30 int pakfire_buildservice_create(struct pakfire_buildservice
** service
, struct pakfire_ctx
* ctx
);
32 struct pakfire_buildservice
* pakfire_buildservice_ref(struct pakfire_buildservice
* service
);
33 struct pakfire_buildservice
* pakfire_buildservice_unref(struct pakfire_buildservice
* service
);
37 int pakfire_buildservice_upload(struct pakfire_buildservice
* service
,
38 const char* path
, const char* filename
);
39 int pakfire_buildservice_list_uploads(
40 struct pakfire_buildservice
* service
, struct json_object
** uploads
);
41 int pakfire_buildservice_delete_upload(
42 struct pakfire_buildservice
* service
, const char* uuid
);
44 #endif /* PAKFIRE_BUILDSERVICE_H */