/* Copyright (C) 2012-2020, Dirk Krause SPDX-License-Identifier: BSD-3-Clause */ /* WARNING: This file was generated by the dkct program (see http://dktools.sourceforge.net/ for details). Changes you make here will be lost if dkct is run again! You should modify the original source and run dkct on it. Original source: itadata.ctr */ /** @file itadata.c The itadata module. */ #line 10 "itadata.ctr" #include "dk3all.h" #include "itadmin.h" #line 17 "itadata.ctr" int itadmin_data_read(itadmin_job *job) { int back = 0; #line 25 "itadata.ctr" 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; } #line 37 "itadata.ctr" return back; }