]> git.ipfire.org Git - people/ms/pakfire.git/blame - src/libpakfire/include/pakfire/packager.h
packager: Make filename accessible through extra function
[people/ms/pakfire.git] / src / libpakfire / include / pakfire / packager.h
CommitLineData
6aeb48e6
MT
1/*#############################################################################
2# #
3# Pakfire - The IPFire package management system #
4# Copyright (C) 2021 Pakfire development team #
5# #
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. #
10# #
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. #
15# #
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/>. #
18# #
19#############################################################################*/
20
21#ifndef PAKFIRE_PACKAGER_H
22#define PAKFIRE_PACKAGER_H
23
24#include <pakfire/types.h>
25
26struct pakfire_packager;
27
28int pakfire_packager_create(struct pakfire_packager** packager, PakfirePackage pkg);
29
30struct pakfire_packager* pakfire_packager_ref(struct pakfire_packager* packager);
31struct pakfire_packager* pakfire_packager_unref(struct pakfire_packager* packager);
32
96d2c7bc
MT
33char* pakfire_packager_filename(struct pakfire_packager* packager);
34
35int pakfire_packager_finish(struct pakfire_packager* packager, FILE* f);
436677a3 36
da08f989
MT
37int pakfire_packager_add(struct pakfire_packager* packager, const char* path);
38
6aeb48e6 39#endif /* PAKFIRE_PACKAGER_H */