summaryrefslogtreecommitdiffstats
path: root/expac.h
blob: 0d6c5b6bee1476d5b5b5432c800e2c2025ae9904 (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
27
#ifndef _EXPAC_H
#define _EXPAC_H

#include <alpm.h>

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

typedef enum SearchWhat {
  SEARCH_GROUPS = (1 << 0),
  SEARCH_REGEX  = (1 << 1),
  SEARCH_EXACT  = (1 << 2),
  _SEARCH_MAX   = (1 << 15),
} 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: */