~ubuntu-branches/ubuntu/karmic/pilot-link/karmic

« back to all changes in this revision

Viewing changes to src/pilot-datebook/pilot-datebook-remind.h

  • Committer: Bazaar Package Importer
  • Author(s): Ludovic Rousseau
  • Date: 2006-09-22 11:51:36 UTC
  • mfrom: (3.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20060922115136-qqmy17bx8j5x0y72
Tags: 0.12.1-5
* urgency medium since libpisock-dev was not usable to build any package
* libpisock-dev now depends on libusb-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Pilot Datebook processing utility
3
 
 * Matthias Hessler <pilot-datebook@mhessler.de> December 2000
4
 
 *
5
 
 * This is free software, licensed under the GNU Public License V2.
6
 
 * See the file COPYING for details.
7
 
 */
8
 
          
9
 
 
10
 
#ifndef _PILOT_DATEBOOK_REMIND
11
 
#define _PILOT_DATEBOOK_REMIND
12
 
 
13
 
 
14
 
#include "pilot-datebook-data.h"
15
 
 
16
 
 
17
 
 
18
 
/* data structures */
19
 
 
20
 
/* file data */
21
 
struct remind_file_data {
22
 
  char * filename;
23
 
 
24
 
  FILE * file;
25
 
 
26
 
  int file_is_open;
27
 
  char * line_buffer;
28
 
  int line_no;
29
 
  int num_recs; /* number of records in file */
30
 
  int next_rec; /* record number of next record (record number starts with 0)
31
 
                   (before reading first record: next_rec = 0) */
32
 
 
33
 
  /* Statistics */
34
 
  int lines_read;
35
 
  int lines_written;
36
 
  int records_read;
37
 
  int records_written;
38
 
};
39
 
 
40
 
 
41
 
 
42
 
 
43
 
/* Function definitions */
44
 
 
45
 
/* Public */
46
 
 
47
 
/* For init */
48
 
int remind_init_write (struct remind_file_data * in_file);
49
 
void remind_exit_write (struct remind_file_data * out_file);
50
 
int remind_set_write_option (struct remind_file_data * out_file, char opt, char * opt_arg);
51
 
 
52
 
/* For opening & closing */
53
 
void remind_open_write (struct remind_file_data * out_file, struct header_data * header);
54
 
void remind_close_write (struct remind_file_data * out_file, struct header_data * header);
55
 
void remind_abort_write (struct remind_file_data * out_file);
56
 
 
57
 
/* For writing */
58
 
void remind_write_row (struct remind_file_data * out_file, struct header_data * header, struct row_data * row);
59
 
 
60
 
/* For statistics */
61
 
void remind_show_write_statistics (struct remind_file_data * out_file);
62
 
 
63
 
 
64
 
/* Private */
65
 
void remind_write_header (struct remind_file_data * out_file, struct header_data * header);
66
 
 
67
 
/* For IO */
68
 
void remind_write_str (struct remind_file_data * out_file, const char * out_string);
69
 
void remind_write (struct remind_file_data * out_file, const char * format, ...);
70
 
 
71
 
 
72
 
#endif