libdebian-installer
parser_rfc822.h
1 /*
2  * parser_rfc822.h
3  *
4  * Copyright (C) 2003 Bastian Blank <waldi@debian.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef DEBIAN_INSTALLER__PARSER_RFC822_H
21 #define DEBIAN_INSTALLER__PARSER_RFC822_H
22 
23 #include <debian-installer/hash.h>
24 #include <debian-installer/parser.h>
25 
26 #include <stdio.h>
27 
45 int di_parser_rfc822_read (char *begin, size_t size, di_parser_info *fieldinfo, di_parser_read_entry_new entry_new, di_parser_read_entry_finish entry_finish, void *user_data);
46 
58 int di_parser_rfc822_read_file (const char *file, di_parser_info *fieldinfo, di_parser_read_entry_new entry_new, di_parser_read_entry_finish entry_finish, void *user_data);
59 
70 int di_parser_rfc822_write_file (const char *file, di_parser_info *fieldinfo, di_parser_write_entry_next entry_next, void *user_data);
71 
73 #endif
di_parser_info::wildcard
bool wildcard
Definition: parser.h:98
di_parser_info::table
di_hash_table * table
Definition: parser.h:95
di_parser_rfc822_write_file
int di_parser_rfc822_write_file(const char *file, di_parser_info *info, di_parser_write_entry_next entry_next, void *user_data)
Definition: parser_rfc822.c:252
di_slist_node::next
di_slist_node * next
Definition: slist.h:47
di_parser_rfc822_read_file
int di_parser_rfc822_read_file(const char *file, di_parser_info *info, di_parser_read_entry_new entry_new, di_parser_read_entry_finish entry_finish, void *user_data)
Definition: parser_rfc822.c:213
di_parser_info::list
di_slist list
Definition: parser.h:96
di_rstring::string
char * string
Definition: string.h:39
di_warning
#define di_warning(format...)
Definition: log.h:59
di_parser_info::modifier
bool modifier
Definition: parser.h:97
di_rstring
raw string
Definition: string.h:38
di_slist_node
Node of a single-linked list.
Definition: slist.h:46
di_slist::head
di_slist_node * head
Definition: slist.h:38
di_rstring::size
di_ksize_t size
Definition: string.h:40
di_hash_table_lookup
void * di_hash_table_lookup(di_hash_table *hash_table, const void *key)
Definition: hash.c:169
di_parser_fieldinfo::read
di_parser_fields_function_read * read
Definition: parser.h:107
di_parser_read_entry_new
void * di_parser_read_entry_new(void *user_data)
Definition: parser.h:76
di_slist_node::data
void * data
Definition: slist.h:48
di_parser_fieldinfo::write
di_parser_fields_function_write * write
Definition: parser.h:108
di_parser_info
Parse info.
Definition: parser.h:94
di_parser_fieldinfo
Info about a parser field.
Definition: parser.h:105
di_parser_rfc822_read
int di_parser_rfc822_read(char *begin, size_t size, di_parser_info *info, di_parser_read_entry_new entry_new, di_parser_read_entry_finish entry_finish, void *user_data)
Definition: parser_rfc822.c:40
di_parser_write_entry_next
void * di_parser_write_entry_next(void **state_data, void *user_data)
Definition: parser.h:88
di_parser_read_entry_finish
int di_parser_read_entry_finish(void *data, void *user_data)
Definition: parser.h:82