/* alpm_octopi_utils.h generated by valac 0.46.1, the Vala compiler, do not modify */

#ifndef __ALPM_OCTOPI_UTILS_H__
#define __ALPM_OCTOPI_UTILS_H__

#include <stdlib.h>
#include <string.h>
#include <glib.h>
#include <alpm.h>
#include <alpm_list.h>

G_BEGIN_DECLS

typedef struct _AlpmUtils AlpmUtils;

struct _AlpmUtils {
	gchar* conf_file_path;
	alpm_handle_t* alpm_handle;
	alpm_list_t* holdpkgs;
	alpm_list_t* syncfirsts;
};

void alpm_utils_free (AlpmUtils * self);
G_DEFINE_AUTOPTR_CLEANUP_FUNC (AlpmUtils, alpm_utils_free)
AlpmUtils* alpm_utils_new (const gchar* conf_file_path);
void alpm_utils_refresh_handle (AlpmUtils* self);
alpm_pkg_t* alpm_utils_get_installed_pkg (AlpmUtils* self,
                                          const gchar* pkg_name);
alpm_pkg_t* alpm_utils_get_sync_pkg (AlpmUtils* self,
                                     const gchar* pkg_name);
alpm_list_t* alpm_utils_search_all_dbs (AlpmUtils* self,
                                        const gchar* search_string);
alpm_list_t* alpm_utils_get_group_pkgs (AlpmUtils* self,
                                        const gchar* group_name);
alpm_list_t* alpm_utils_get_installed_pkgs (AlpmUtils* self);
alpm_list_t* alpm_utils_get_orphans (AlpmUtils* self);
alpm_list_t* alpm_utils_get_unrequired (AlpmUtils* self);
alpm_list_t* alpm_utils_get_foreign_pkgs (AlpmUtils* self);
alpm_list_t* alpm_utils_get_repo_pkgs (AlpmUtils* self,
                                       const gchar* repo_name);
alpm_list_t* alpm_utils_get_all_pkgs (AlpmUtils* self);
alpm_list_t* alpm_utils_get_updates (AlpmUtils* self);

G_END_DECLS

#endif
