blob: c377b1899a820e3e6871ed62c5f27c387768684e (
plain)
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
|
%% options
copyright owner = Dirk Krause
copyright year = 2012-xxxx
license = bsd
%% module
#include "dk3all.h"
#include "itadmin.h"
$!trace-include
int
itadmin_data_read(itadmin_job *job)
{
int back = 0;
$? "+ itadmin_data_read"
switch(job->dbt) {
case DK3_SQLDB_TYPE_MYSQL: {
back = itadmin_data_mysql_read(job);
} break;
default: {
/* ERROR: Unsupported database type! */
dk3app_log_1(job->app, DK3_LL_ERROR, job->msg, 133);
} break;
}
if(job->ec) { /* ERROR occured. */
back = 0;
} $? "- itadmin_data_read %d", back
return back;
}
|