aboutsummaryrefslogtreecommitdiff
path: root/include/pkg.h
blob: 15990ab9d21733b9ced1d69a0a0a844b23664d73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PKGIT_PKG_H
#define PKGIT_PKG_H

#include "str.h"

typedef struct package_t {
	str name, version, url, src;
	unsigned int dep_count;
	bool is_local;
} package_t;

bool pkg_hook_url(package_t *pkg);
str  pkg_get_url(package_t *pkg);
bool pkg_hook_setup(package_t *pkg);
bool pkg_hook_build(package_t *pkg);
bool pkg_hook_install(package_t *pkg);
bool pkg_hook_remove(package_t *pkg);
bool pkg_hook_on_update(package_t *pkg);
bool pkg_hook_fetch_sources(package_t *pkg);
str  pkg_hook_fetch_latest_version(package_t *pkg);

#endif