-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinstall.h
53 lines (47 loc) · 2.07 KB
/
install.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/**
* this file is part of kawa
* Copyright (c) 2020-2021 Emily <elishikawa@jagudev.net>
*
* kawa is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* kawa is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with kawa. If not, see <https://www.gnu.org/licenses/>.
**/
#ifndef INSTALL_H
#define INSTALL_H
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include <curl/curl.h>
#include <sys/stat.h>
#include "config.h"
#include "datatypes.h"
#include "database.h"
#include "depresolve.h"
#include "kawafile.h"
#include "reposync.h"
#include "error.h"
#include "metapkg.h"
#include "binarypkg.h"
#include "patchpkg.h"
#include "sourcepkg.h"
int install(int pkgc, char *pkgnames[]);
int download_install_packages(struct pkglist *nodelist, struct pkglist *patchlist, struct pkg_update **updatepkgs, int *updatec, struct pkglist *database, struct pkglist *installed, struct strarr_retval pkg_deptypes, int pkgc, char *pkgnames[]);
int install_no_deps(struct package *currpkg, struct pkglist *database, struct pkglist *installed, int manual_installed, int is_update, struct strarr_retval *deptypes);
int download_package(struct package *currpkg, struct pkglist *database, int is_update);
int download_archive(struct package *dlpackage, int force, struct pkglist *database);
int download_scripts(struct package *dlpackage, char *baseurl);
char *str_replace(char *orig, char *rep, char *with);
int add_db_entry(struct package *package, int manual_installed, struct pkglist *database, struct pkglist *installed, struct strarr_retval *deptypes);
char *whitespace_join(struct strarr_retval to_join);
#endif // INSTALL_H