chiark / gitweb /
gpg agent lockup fix: Interrupt main loop when active_connections_value==0
[gnupg2.git] / common / recsel.h
1 /* recsel.c - Record selection
2  * Copyright (C) 2016 Werner Koch
3  *
4  * This file is part of GnuPG.
5  *
6  * This file is free software; you can redistribute it and/or modify
7  * it under the terms of either
8  *
9  *   - the GNU Lesser General Public License as published by the Free
10  *     Software Foundation; either version 3 of the License, or (at
11  *     your option) any later version.
12  *
13  * or
14  *
15  *   - the GNU General Public License as published by the Free
16  *     Software Foundation; either version 2 of the License, or (at
17  *     your option) any later version.
18  *
19  * or both in parallel, as here.
20  *
21  * This file is distributed in the hope that it will be useful,
22  * but WITHOUT ANY WARRANTY; without even the implied warranty of
23  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
24  * GNU General Public License for more details.
25  *
26  * You should have received a copy of the GNU General Public License
27  * along with this program; if not, see <https://www.gnu.org/licenses/>.
28  */
29 #ifndef GNUPG_COMMON_RECSEL_H
30 #define GNUPG_COMMON_RECSEL_H
31
32 struct recsel_expr_s;
33 typedef struct recsel_expr_s *recsel_expr_t;
34
35 gpg_error_t recsel_parse_expr (recsel_expr_t *selector, const char *expr);
36 void recsel_release (recsel_expr_t a);
37 void recsel_dump (recsel_expr_t selector);
38 int recsel_select (recsel_expr_t selector,
39                    const char *(*getval)(void *cookie, const char *propname),
40                    void *cookie);
41
42
43 #endif /*GNUPG_COMMON_RECSEL_H*/