26 #define _DBOG_DSDB_H_ 1
37 DBStatus dsdbog_get_facility_location(
43 #define FacLat(dbres) dbres->data[0]
44 #define FacLon(dbres) dbres->data[1]
45 #define FacAlt(dbres) dbres->data[2]
46 #define FacLoc(dbres) dbres->data[3]
48 DBStatus dsdbog_get_site_description(
53 #define SiteName(dbres) dbres->data[0]
54 #define SiteDesc(dbres) dbres->data[1]
63 DBStatus dsdbog_define_process_config_key(
68 DBStatus dsdbog_delete_process_config_key(
73 DBStatus dsdbog_delete_process_config_value(
75 const char *proc_type,
76 const char *proc_name,
82 DBStatus dsdbog_get_process_config_values(
84 const char *proc_type,
85 const char *proc_name,
91 #define ProcConfType(dbres,row) DB_RESULT(dbres,row,0)
92 #define ProcConfName(dbres,row) DB_RESULT(dbres,row,1)
93 #define ProcConfSite(dbres,row) DB_RESULT(dbres,row,2)
94 #define ProcConfFac(dbres,row) DB_RESULT(dbres,row,3)
95 #define ProcConfKey(dbres,row) DB_RESULT(dbres,row,4)
96 #define ProcConfValue(dbres,row) DB_RESULT(dbres,row,5)
98 DBStatus dsdbog_update_process_config_value(
100 const char *proc_type,
101 const char *proc_name,
103 const char *facility,
111 DBStatus dsdbog_inquire_process_families(
113 const char *category,
116 const char *facility,
119 #define ProcFamCat(dbres,row) DB_RESULT(dbres,row,0)
120 #define ProcFamClass(dbres,row) DB_RESULT(dbres,row,1)
121 #define ProcFamSite(dbres,row) DB_RESULT(dbres,row,2)
122 #define ProcFamFac(dbres,row) DB_RESULT(dbres,row,3)
123 #define ProcFamLoc(dbres,row) DB_RESULT(dbres,row,4)
124 #define ProcFamLat(dbres,row) DB_RESULT(dbres,row,5)
125 #define ProcFamLon(dbres,row) DB_RESULT(dbres,row,6)
126 #define ProcFamAlt(dbres,row) DB_RESULT(dbres,row,7)
135 const char *facility,
136 const char *proc_type,
137 const char *proc_name,
140 DBStatus dsdbog_inquire_family_processes(
142 const char *category,
145 const char *facility,
146 const char *proc_type,
147 const char *proc_name,
150 #define FamProcCat(dbres,row) DB_RESULT(dbres,row,0)
151 #define FamProcClass(dbres,row) DB_RESULT(dbres,row,1)
152 #define FamProcSite(dbres,row) DB_RESULT(dbres,row,2)
153 #define FamProcFac(dbres,row) DB_RESULT(dbres,row,3)
154 #define FamProcType(dbres,row) DB_RESULT(dbres,row,4)
155 #define FamProcName(dbres,row) DB_RESULT(dbres,row,5)
157 DBStatus dsdbog_get_family_process_location(
160 const char *facility,
161 const char *proc_type,
162 const char *proc_name,
165 #define FamProcLat(dbres) dbres->data[0]
166 #define FamProcLon(dbres) dbres->data[1]
167 #define FamProcAlt(dbres) dbres->data[2]
168 #define FamProcLoc(dbres) dbres->data[3]
174 DBStatus dsdbog_delete_family_process_state(
177 const char *facility,
178 const char *proc_type,
179 const char *proc_name,
182 DBStatus dsdbog_get_family_process_state(
185 const char *facility,
186 const char *proc_type,
187 const char *proc_name,
190 DBStatus dsdbog_inquire_family_process_states(
192 const char *category,
195 const char *facility,
196 const char *proc_type,
197 const char *proc_name,
200 #define StateCat(dbres,row) DB_RESULT(dbres,row,0)
201 #define StateClass(dbres,row) DB_RESULT(dbres,row,1)
202 #define StateSite(dbres,row) DB_RESULT(dbres,row,2)
203 #define StateFac(dbres,row) DB_RESULT(dbres,row,3)
204 #define StateProcType(dbres,row) DB_RESULT(dbres,row,4)
205 #define StateProcName(dbres,row) DB_RESULT(dbres,row,5)
206 #define StateName(dbres,row) DB_RESULT(dbres,row,6)
207 #define StateEnabled(dbres,row) DB_RESULT(dbres,row,7)
208 #define StateText(dbres,row) DB_RESULT(dbres,row,8)
209 #define StateTime(dbres,row) DB_RESULT(dbres,row,9)
211 DBStatus dsdbog_is_family_process_enabled(
214 const char *facility,
215 const char *proc_type,
216 const char *proc_name,
219 DBStatus dsdbog_update_family_process_state(
222 const char *facility,
223 const char *proc_type,
224 const char *proc_name,
226 const char *description,
234 DBStatus dsdbog_delete_family_process_status(
237 const char *facility,
238 const char *proc_type,
239 const char *proc_name,
242 DBStatus dsdbog_get_family_process_status(
245 const char *facility,
246 const char *proc_type,
247 const char *proc_name,
250 DBStatus dsdbog_inquire_family_process_statuses(
252 const char *category,
255 const char *facility,
256 const char *proc_type,
257 const char *proc_name,
260 #define StatusCat(dbres,row) DB_RESULT(dbres,row,0)
261 #define StatusClass(dbres,row) DB_RESULT(dbres,row,1)
262 #define StatusSite(dbres,row) DB_RESULT(dbres,row,2)
263 #define StatusFac(dbres,row) DB_RESULT(dbres,row,3)
264 #define StatusProcType(dbres,row) DB_RESULT(dbres,row,4)
265 #define StatusProcName(dbres,row) DB_RESULT(dbres,row,5)
266 #define StatusName(dbres,row) DB_RESULT(dbres,row,6)
267 #define StatusSuccessful(dbres,row) DB_RESULT(dbres,row,7)
268 #define StatusText(dbres,row) DB_RESULT(dbres,row,8)
269 #define StatusLastStarted(dbres,row) DB_RESULT(dbres,row,9)
270 #define StatusLastCompleted(dbres,row) DB_RESULT(dbres,row,10)
271 #define StatusLastSuccessful(dbres,row) DB_RESULT(dbres,row,11)
273 DBStatus dsdbog_update_family_process_started(
276 const char *facility,
277 const char *proc_type,
278 const char *proc_name,
282 DBStatus dsdbog_update_family_process_completed(
285 const char *facility,
286 const char *proc_type,
287 const char *proc_name,
288 time_t completed_time,
291 DBStatus dsdbog_update_family_process_status(
294 const char *facility,
295 const char *proc_type,
296 const char *proc_name,
298 const char *description,
299 time_t completed_time,
306 DBStatus dsdbog_get_process_input_ds_classes(
308 const char *proc_type,
309 const char *proc_name,
312 DBStatus dsdbog_inquire_process_input_ds_classes(
314 const char *proc_type,
315 const char *proc_name,
316 const char *dsc_name,
317 const char *dsc_level,
320 #define InDscProcType(dbres,row) DB_RESULT(dbres,row,0)
321 #define InDscProcName(dbres,row) DB_RESULT(dbres,row,1)
322 #define InDscName(dbres,row) DB_RESULT(dbres,row,2)
323 #define InDscLevel(dbres,row) DB_RESULT(dbres,row,3)
329 DBStatus dsdbog_get_process_output_ds_classes(
331 const char *proc_type,
332 const char *proc_name,
335 DBStatus dsdbog_inquire_process_output_ds_classes(
337 const char *proc_type,
338 const char *proc_name,
339 const char *dsc_name,
340 const char *dsc_level,
343 #define OutDscProcType(dbres,row) DB_RESULT(dbres,row,0)
344 #define OutDscProcName(dbres,row) DB_RESULT(dbres,row,1)
345 #define OutDscName(dbres,row) DB_RESULT(dbres,row,2)
346 #define OutDscLevel(dbres,row) DB_RESULT(dbres,row,3)
352 DBStatus dsdbog_delete_process_output_datastream(
354 const char *proc_type,
355 const char *proc_name,
356 const char *dsc_name,
357 const char *dsc_level,
359 const char *facility,
362 DBStatus dsdbog_get_process_output_datastream(
364 const char *proc_type,
365 const char *proc_name,
366 const char *dsc_name,
367 const char *dsc_level,
369 const char *facility,
372 DBStatus dsdbog_inquire_process_output_datastreams(
374 const char *proc_type,
375 const char *proc_name,
376 const char *dsc_name,
377 const char *dsc_level,
379 const char *facility,
382 #define OutDsProcType(dbres,row) DB_RESULT(dbres,row,0)
383 #define OutDsProcName(dbres,row) DB_RESULT(dbres,row,1)
384 #define OutDsClassName(dbres,row) DB_RESULT(dbres,row,2)
385 #define OutDsClassLevel(dbres,row) DB_RESULT(dbres,row,3)
386 #define OutDsSite(dbres,row) DB_RESULT(dbres,row,4)
387 #define OutDsFac(dbres,row) DB_RESULT(dbres,row,5)
388 #define OutDsFirstTime(dbres,row) DB_RESULT(dbres,row,6)
389 #define OutDsLastTime(dbres,row) DB_RESULT(dbres,row,7)
391 DBStatus dsdbog_update_process_output_datastream(
393 const char *proc_type,
394 const char *proc_name,
395 const char *dsc_name,
396 const char *dsc_level,
398 const char *facility,
406 DBStatus dsdbog_define_datastream_config_key(
411 DBStatus dsdbog_delete_datastream_config_key(
416 DBStatus dsdbog_delete_datastream_config_value(
418 const char *dsc_type,
419 const char *dsc_name,
421 const char *facility,
425 DBStatus dsdbog_get_datastream_config_values(
427 const char *dsc_type,
428 const char *dsc_name,
430 const char *facility,
434 #define DSConfName(dbres,row) DB_RESULT(dbres,row,0)
435 #define DSConfLevel(dbres,row) DB_RESULT(dbres,row,1)
436 #define DSConfSite(dbres,row) DB_RESULT(dbres,row,2)
437 #define DSConfFac(dbres,row) DB_RESULT(dbres,row,3)
438 #define DSConfKey(dbres,row) DB_RESULT(dbres,row,4)
439 #define DSConfValue(dbres,row) DB_RESULT(dbres,row,5)
441 DBStatus dsdbog_update_datastream_config_value(
443 const char *dsc_type,
444 const char *dsc_name,
446 const char *facility,