-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathparish_common.h
101 lines (90 loc) · 2.41 KB
/
parish_common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/* Copyright (C) 2009 Arun S.A.G.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef PARISH_COMMON
#define PARISH_COMMON
#include <gtk/gtk.h>
#include <glib.h>
#include <sqlite3.h>
#include <string.h>
#include <math.h>
GtkBuilder *build;
sqlite3 *handle;
sqlite3_stmt *stmt;
struct baptism_cert
{
gchar *kept_at;
gchar *place;
gchar *dobap_date;
gchar *dobap_month;
gchar *dobap_year;
gchar *name;
gchar *dob;
gchar *dob_date;
gchar *dob_month;
gchar *dob_year;
gchar *sex;
gchar *mom;
gchar *dad;
gchar *resi;
gchar *caste;
gchar *spon1;
gchar *spon2;
gchar *priest;
gchar *remarks;
};
typedef struct
{
gchar *marriage_date;
gchar *marriage_month;
gchar *marriage_year;
gchar *bride_name;
gchar *groom_name;
gchar *bride_dob_date;
gchar *bride_dob_month;
gchar *bride_dob_year;
gchar *groom_dob_date;
gchar *groom_dob_month;
gchar *groom_dob_year;
gchar *bride_cond;
gchar *groom_cond;
gchar *bride_rank;
gchar *groom_rank;
gchar *bride_father;
gchar *groom_father;
gchar *bride_addr;
gchar *bride_villi;
gchar *bride_dist;
gchar *bride_pin;
gchar *groom_addr;
gchar *groom_villi;
gchar *groom_dist;
gchar *groom_pin;
gchar *bride_wit_name;
gchar *groom_wit_name;
gchar *bride_wit_addr;
gchar *bride_wit_villi;
gchar *bride_wit_dist;
gchar *bride_wit_pin;
gchar *groom_wit_addr;
gchar *groom_wit_villi;
gchar *groom_wit_dist;
gchar *groom_wit_pin;
gchar *minister;
}marriage_cert;
void quick_message(gchar *);
gboolean is_form_valid(struct baptism_cert *cert);
void add_text_combobox();
void prepare_date(gchar *date,gchar *month,gchar *year,gchar *date_dob);
void prepare_results(GString *result,int cols,int radio);
void get_column_name(int i,GString *col_name,int table);
void append_line(GString *result);
#endif