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

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

int rcdb_last_status(long pid, char *out);

#endif /* RC_LASTSTATUS_DBIO */
