/*
 * st_laststatus_dbio.h - st 모듈 DB 접근 계층 copybook (st_laststatus_dbio, part of libstdbio.a).
 * ECPG functions; run on the caller's XA branch (no EXEC SQL CONNECT).
 * Return convention: >=0 ok, -1 = SQL error.
 */
#ifndef ST_LASTSTATUS_DBIO
#define ST_LASTSTATUS_DBIO

typedef struct { long purchase_id; char status[16]; } st_laststatus_rec_t;

int stdb_last_status(long pid, char *out);

#endif /* ST_LASTSTATUS_DBIO */
