2014-10-22 13:44:02 -03:00
|
|
|
#ifndef ALPM_VALA_H
|
|
|
|
#define ALPM_VALA_H
|
|
|
|
|
|
|
|
#include <alpm.h>
|
|
|
|
|
|
|
|
typedef struct __alpm_list_iterator_t {
|
|
|
|
alpm_list_t* pos;
|
|
|
|
} alpm_list_iterator_t;
|
|
|
|
|
2014-12-03 12:02:14 -03:00
|
|
|
void* alpm_list_get_data (alpm_list_t *list);
|
2014-10-30 10:44:09 -03:00
|
|
|
void* alpm_list_nth_data (alpm_list_t *list, size_t n);
|
2015-01-03 13:26:47 -03:00
|
|
|
alpm_list_t* alpm_list_add_str (alpm_list_t *list, const char *str);
|
2014-12-03 12:02:14 -03:00
|
|
|
alpm_list_t *alpm_list_remove_data (alpm_list_t *list, const void *needle, alpm_list_fn_cmp fn);
|
|
|
|
alpm_list_t *alpm_list_sort_data (alpm_list_t *list, alpm_list_fn_cmp fn);
|
|
|
|
alpm_list_t *alpm_list_new ();
|
|
|
|
void alpm_list_free_all (alpm_list_t *list);
|
|
|
|
void alpm_list_iterator (alpm_list_t *list, alpm_list_iterator_t* i);
|
|
|
|
void* alpm_list_iterator_next_value (alpm_list_iterator_t *iter);
|
2014-10-22 13:44:02 -03:00
|
|
|
|
2014-12-03 12:02:14 -03:00
|
|
|
alpm_pkg_t* alpm_pkg_load_file (alpm_handle_t *handle, const char *filename, int full, alpm_siglevel_t level);
|
2014-10-22 13:44:02 -03:00
|
|
|
alpm_list_t* alpm_pkg_get_files_list (alpm_pkg_t* pkg);
|
|
|
|
|
|
|
|
#endif //!ALPM_VALA_H
|