/*
 * au_limit_spread_dbio.h - au 모듈 DB 접근 계층 copybook (au_limit_spread_dbio, part of libaudbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 * Shape: max/min/avg 3중 집계로 한도 스프레드.
 */
#ifndef AU_LIMIT_SPREAD_DBIO_H
#define AU_LIMIT_SPREAD_DBIO_H

typedef struct { long lim_max; long lim_min; long used_avg; } au_limit_spread_rec_t;

long audb_limit_spread(long *used_avg_out);

#endif /* AU_LIMIT_SPREAD_DBIO_H */
