Moved publicly available declarations to <mailutils/libsieve.h>
Showing
1 changed file
with
14 additions
and
9 deletions
... | @@ -2,29 +2,34 @@ | ... | @@ -2,29 +2,34 @@ |
2 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This program is free software; you can redistribute it and/or modify | 4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU Lesser General Public License as published by |
6 | the Free Software Foundation; either version 2, or (at your option) | 6 | the Free Software Foundation; either version 2, or (at your option) |
7 | any later version. | 7 | any later version. |
8 | 8 | ||
9 | This program is distributed in the hope that it will be useful, | 9 | This program is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU General Public License for more details. | 12 | GNU Lesser General Public License for more details. |
13 | 13 | ||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU Lesser General Public License |
15 | along with this program; if not, write to the Free Software | 15 | along with this program; if not, write to the Free Software |
16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | 16 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
17 | 17 | ||
18 | #include <sys/types.h> | 18 | #include <mailutils/libsieve.h> |
19 | 19 | ||
20 | #define sieve_error mu_error | 20 | typedef union { |
21 | sieve_instr_t instr; | ||
22 | sieve_value_t val; | ||
23 | } sieve_op_t; | ||
24 | |||
25 | struct sieve_machine { | ||
26 | size_t progsize; | ||
27 | sieve_op_t *prog; | ||
28 | }; | ||
21 | 29 | ||
22 | extern char *sieve_filename; | 30 | extern char *sieve_filename; |
23 | extern int sieve_line_num; | 31 | extern int sieve_line_num; |
24 | extern int sieve_yydebug; | 32 | extern int sieve_yydebug; |
25 | 33 | ||
26 | void *sieve_alloc (size_t size); | 34 | #define sieve_error mu_error |
27 | |||
28 | int sieve_open_source (const char *name); | ||
29 | 35 | ||
30 | int sieve_parse (const char *name); | ... | ... |
-
Please register or sign in to post a comment