| 1 | /* ---------------------------------------------------------------- EASYCI.H */ |
|---|
| 2 | |
|---|
| 3 | /* ----------------------------------------------------------------- defines */ |
|---|
| 4 | #define ECI_FIELD_UPDATE_SIZE 64 /* field update auxiliary size */ |
|---|
| 5 | #define ECI_LOCK_RETRIES (8*KBYTE) /* lock retry quantity */ |
|---|
| 6 | /* ------------------------------------------------------------- enumeration */ |
|---|
| 7 | typedef enum { |
|---|
| 8 | ECI_ERROR_OK, |
|---|
| 9 | ECI_ERROR_ACTAB, |
|---|
| 10 | ECI_ERROR_ALLOC, |
|---|
| 11 | ECI_ERROR_EOF, |
|---|
| 12 | ECI_ERROR_FLDUPD, |
|---|
| 13 | ECI_ERROR_IMPORT, |
|---|
| 14 | ECI_ERROR_MAXNREC, |
|---|
| 15 | ECI_ERROR_MAXNTRM, |
|---|
| 16 | ECI_ERROR_UCTAB, |
|---|
| 17 | ECI_ERROR_UNLOCK, |
|---|
| 18 | ECI_ERROR_QTT |
|---|
| 19 | } ECI_ERROR; /* error codes */ |
|---|
| 20 | /* -------------------------------------------------------------- prototypes */ |
|---|
| 21 | BOOLEAN eci_export_hline (FILE *export_fp,long idx); |
|---|
| 22 | BOOLEAN eci_export_iso2709(FILE *export_fp,long idx,BOOLEAN writeCR); |
|---|
| 23 | BOOLEAN eci_export_iso2709_marc(FILE *export_fp,long idx); |
|---|
| 24 | BOOLEAN eci_export_vline (FILE *export_fp,long idx); |
|---|
| 25 | char *eci_field (long idx,int tag,int occ,char *buff); |
|---|
| 26 | ECI_ERROR eci_field_AN (EFC_ERROR *err,long idx,int tag,long num); |
|---|
| 27 | ECI_ERROR eci_field_AT (EFC_ERROR *err,long idx,int tag,char *text); |
|---|
| 28 | ECI_ERROR eci_field_copy (EFC_ERROR *err,BOOLEAN del,long to_idx,int to_tag,long from_idx,int from_tag); |
|---|
| 29 | ECI_ERROR eci_field_D (EFC_ERROR *err,long idx,int tag); |
|---|
| 30 | ECI_ERROR eci_field_DO (EFC_ERROR *err,long idx,int tag,int occ); |
|---|
| 31 | ECI_ERROR eci_field_ML (EFC_ERROR *err,long idx,int tag,char *list); |
|---|
| 32 | ECI_ERROR eci_field_MN (EFC_ERROR *err,long idx,int tag,long num); |
|---|
| 33 | ECI_ERROR eci_field_MT (EFC_ERROR *err,long idx,int tag,char *text); |
|---|
| 34 | ECI_ERROR eci_field_update (EFC_ERROR *err,long idx,char *buff); |
|---|
| 35 | ECI_ERROR eci_fmt_all (long idx,char *buff); |
|---|
| 36 | ECI_ERROR eci_import_hvline (EFC_ERROR *err,FILE *import_fp,long idx,char *buff); |
|---|
| 37 | ECI_ERROR eci_import_rline (EFC_ERROR *err,FILE *import_fp,char delimiter,long idx,char *buff); |
|---|
| 38 | ECI_ERROR eci_import_iso2709(EFC_ERROR *err,FILE *import_fp,long idx,char *buff); |
|---|
| 39 | ECI_ERROR eci_import_iso2709_marc(EFC_ERROR *err,FILE *import_fp,long idx,char *buff); |
|---|
| 40 | long eci_last_mfn (EFC_ERROR *err,char *db); |
|---|
| 41 | BOOLEAN eci_lock (long idx,char *db,long mfn,int lock_type); |
|---|
| 42 | long eci_rec_active (long idx); |
|---|
| 43 | void eci_rec_copy (long to,long from); |
|---|
| 44 | void eci_rec_free (long idx); |
|---|
| 45 | long eci_rec_new (EFC_ERROR *err,long mfrl); |
|---|
| 46 | ECI_ERROR eci_set_actab (EFC_ERROR *err,char *p); |
|---|
| 47 | ECI_ERROR eci_set_uctab (EFC_ERROR *err,unsigned char *p); |
|---|
| 48 | char *eci_sub_field (char subfld_char,char *buff); |
|---|
| 49 | void eci_trm_free (long idx); |
|---|
| 50 | long eci_trm_new (EFC_ERROR *err); |
|---|
| 51 | char *eci_uctab (char *buff); |
|---|
| 52 | ECI_ERROR eci_unlock (long idx,long mfn,int lock_type); |
|---|