summaryrefslogtreecommitdiffstats
path: root/expac.h
blob: d2c6a5aa8ae61969cc502fea7fe705bd77841974 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _EXPAC_H
#define _EXPAC_H

#include <alpm.h>

typedef enum PackageCorpus {
  CORPUS_LOCAL,
  CORPUS_SYNC,
  CORPUS_FILE,
} PackageCorpus;

typedef enum SearchWhat {
  SEARCH_EXACT,
  SEARCH_GROUPS,
  SEARCH_REGEX,
} SearchWhat;

typedef struct Expac {
  alpm_handle_t *alpm;
} Expac;

int expac_new(Expac **expac, const char *config_file);

#endif  /* _EXPAC_H */

/* vim: set et ts=2 sw=2: */