Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (35 sloc) 0.984 kB
#ifndef POWAUR_QUERY_H
#define POWAUR_QUERY_H
#include <alpm_list.h>
#include "graph.h"
#include "hashdb.h"
/* Search type */
enum aurquery_t {
AUR_QUERY_SEARCH,
AUR_QUERY_INFO,
AUR_QUERY_MSEARCH
};
enum {
RESOLVE_IMMEDIATE,
RESOLVE_THOROUGH
};
/* Builds a dependency graph for the given package.
*
* @param graph if graph is existing, will add on to the graph.
* @param hashdb hash database
* @param targets list of strings (packages)
* @param resolve_lvl level of dep resolution, immediate vs thorough
*
*/
void build_dep_graph(struct graph **graph, struct pw_hashdb *hashdb,
alpm_list_t *targets, int resolve_lvl);
/* Prints topological order of graph of strings
*
* @param graph graph of strings
* @param topost stack of integers containing topological order of graph
*/
void print_topo_order(struct graph *graph, struct stack *topost);
int powaur_query(alpm_list_t *targets);
int powaur_crawl(alpm_list_t *targets);
int powaur_list_aur(void);
#endif
Jump to Line
Something went wrong with that request. Please try again.