WinGui: Fix another instance of the Caliburn vs Json.net sillyness where objects...
[HandBrake.git] / test / parsecsv.h
blob83ae6b2406f5122bf14ce23090a55570d07bfc9c
1 /* parsecsv.c
3 Copyright (c) 2003-2015 HandBrake Team
4 This file is part of the HandBrake source code
5 Homepage: <http://handbrake.fr/>.
6 It may be used under the terms of the GNU General Public License v2.
7 For full terms see the file COPYING file or visit http://www.gnu.org/licenses/gpl-2.0.html
8 */
11 A very simple CSV file parser.
14 typedef struct hb_csv_file_s hb_csv_file_t;
15 typedef struct hb_csv_cell_s hb_csv_cell_t;
17 struct hb_csv_file_s
19 FILE * fileref;
20 int eof;
21 int parse_state;
22 int curr_row;
23 int curr_col;
26 struct hb_csv_cell_s
28 char cell_text[1024];
29 int cell_row;
30 int cell_col;
33 /* Open a CSV File */
34 hb_csv_file_t *hb_open_csv_file( const char *filepath );
35 void hb_close_csv_file( hb_csv_file_t *file );
37 /* Parse CSV Cells */
38 hb_csv_cell_t *hb_read_next_cell( hb_csv_file_t *file );
39 void hb_dispose_cell( hb_csv_cell_t *cell );