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

#include <alpm.h>

typedef enum SearchCorpus {
  SEARCH_LOCAL,
  SEARCH_SYNC,
  SEARCH_FILE,
} SearchCorpus;

typedef struct Expac {
  alpm_handle_t *alpm;
  alpm_db_t *db_local;

  SearchCorpus search_type;
} Expac;

int expac_new(Expac **expac, int argc, char **argv);

#endif  /* _EXPAC_H */

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