#ifndef DEPINST_H
#define DEPINST_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <libgen.h>
#include <sys/stat.h>
#include <pwd.h>
#include <grp.h>
#include <unistd.h>

#include <curl/curl.h>
#include <archive.h>
#include <archive_entry.h>

#define MAX_DEPENDENCIES 100
#define MAX_PKG_NAME_LENGTH 256

int direxist(const char *path);
int findpkgver(const char *pkg, char *fullpkgname, size_t fullpkgnamesize);
const char *dlpkg(const char *pkg, const char *install_dir);
void install(const char *pkg, const char *install_dir);

#endif