-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathswhdbxx.h
125 lines (70 loc) · 3.17 KB
/
swhdbxx.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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
/*
Swephelp
Copyright 2007-2020 Stanislas Marquis <[email protected]>
Swephelp 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 2 of
the License, or (at your option) any later version.
Swephelp 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 Swephelp. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SWHDBXX_H
#define SWHDBXX_H
#ifdef __cplusplus
extern "C" {
#endif
void swhxx_db_user_new(void** o);
void swhxx_db_user_dealloc(void** o);
unsigned long swhxx_db_user_get_idx(void* o);
int swhxx_db_user_set_idx(void* o, unsigned long x);
const char* swhxx_db_user_get_name(void* o);
int swhxx_db_user_set_name(void* o, const char* s);
const char* swhxx_db_user_get_pswd(void* o);
int swhxx_db_user_set_pswd(void* o, const char* s);
const char* swhxx_db_user_get_mail(void* o);
int swhxx_db_user_set_mail(void* o, const char* s);
const char* swhxx_db_user_get_info(void* o);
int swhxx_db_user_set_info(void* o, const char* s);
int swhxx_db_user_drop(void* o);
int _swhxx_db_user_save_cb(void* arg, int argc, char** argv, char** cols);
int swhxx_db_user_save(void* o);
int _swhxx_db_user_cb(void* arg, int argc, char** argv, char** cols);
int swhxx_db_user_root(void** o, char err[512]);
int swhxx_db_user_select_idx(unsigned long uidx, void** o, char err[512]);
int swhxx_db_user_select(const char* name, void** o, char err[512]);
void swhxx_db_data_new(void** o);
void swhxx_db_data_dealloc(void** o);
unsigned long swhxx_db_data_get_idx(void* o);
int swhxx_db_data_set_idx(void* o, unsigned long x);
unsigned long swhxx_db_data_get_useridx(void* o);
int swhxx_db_data_set_useridx(void* o, unsigned long x);
const char* swhxx_db_data_get_title(void* o);
int swhxx_db_data_set_title(void* o, const char* title);
double swhxx_db_data_get_jd(void* o);
int swhxx_db_data_set_jd(void* o, double jd);
double swhxx_db_data_get_latitude(void* o);
int swhxx_db_data_set_latitude(void* o, double lat);
double swhxx_db_data_get_longitude(void* o);
int swhxx_db_data_set_longitude(void* o, double lon);
long swhxx_db_data_get_altitude(void* o);
int swhxx_db_data_set_altitude(void* o, long alt);
const char* swhxx_db_data_get_datetime(void* o);
int swhxx_db_data_set_datetime(void* o, const char* dt);
const char* swhxx_db_data_get_timezone(void* o);
int swhxx_db_data_set_timezone(void* o, const char* tz);
long swhxx_db_data_get_isdst(void* o);
int swhxx_db_data_set_isdst(void* o, long i);
const char* swhxx_db_data_get_location(void* o);
int swhxx_db_data_set_location(void* o, const char* loc);
const char* swhxx_db_data_get_country(void* o);
int swhxx_db_data_set_country(void* o, const char* cty);
int swhxx_db_data_owner(void* o, void** p, char err[512]);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* SWHDBXX_H */
/* vi: set fenc=utf-8 ff=unix et sw=4 ts=4 */