root/tags/5.4.pre05/wxis_src/easyci.h

Revision 1, 2.9 kB (checked in by heitor.barbieri, 4 years ago)

Criação do svn para Cisis.

Line 
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 */
7typedef 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 */
21BOOLEAN     eci_export_hline    (FILE *export_fp,long idx);
22BOOLEAN     eci_export_iso2709(FILE *export_fp,long idx,BOOLEAN writeCR);
23BOOLEAN     eci_export_iso2709_marc(FILE *export_fp,long idx);
24BOOLEAN     eci_export_vline    (FILE *export_fp,long idx);
25char       *eci_field           (long idx,int tag,int occ,char *buff);
26ECI_ERROR   eci_field_AN        (EFC_ERROR *err,long idx,int tag,long num);
27ECI_ERROR   eci_field_AT        (EFC_ERROR *err,long idx,int tag,char *text);
28ECI_ERROR   eci_field_copy      (EFC_ERROR *err,BOOLEAN del,long to_idx,int to_tag,long from_idx,int from_tag);
29ECI_ERROR   eci_field_D         (EFC_ERROR *err,long idx,int tag);
30ECI_ERROR   eci_field_DO        (EFC_ERROR *err,long idx,int tag,int occ);
31ECI_ERROR   eci_field_ML        (EFC_ERROR *err,long idx,int tag,char *list);
32ECI_ERROR   eci_field_MN        (EFC_ERROR *err,long idx,int tag,long num);
33ECI_ERROR   eci_field_MT        (EFC_ERROR *err,long idx,int tag,char *text);
34ECI_ERROR   eci_field_update    (EFC_ERROR *err,long idx,char *buff);
35ECI_ERROR   eci_fmt_all         (long idx,char *buff);
36ECI_ERROR   eci_import_hvline   (EFC_ERROR *err,FILE *import_fp,long idx,char *buff);
37ECI_ERROR   eci_import_rline    (EFC_ERROR *err,FILE *import_fp,char delimiter,long idx,char *buff);
38ECI_ERROR   eci_import_iso2709(EFC_ERROR *err,FILE *import_fp,long idx,char *buff);
39ECI_ERROR   eci_import_iso2709_marc(EFC_ERROR *err,FILE *import_fp,long idx,char *buff);
40long        eci_last_mfn        (EFC_ERROR *err,char *db);
41BOOLEAN     eci_lock            (long idx,char *db,long mfn,int lock_type);
42long        eci_rec_active      (long idx);
43void        eci_rec_copy        (long to,long from);
44void        eci_rec_free        (long idx);
45long        eci_rec_new         (EFC_ERROR *err,long mfrl);
46ECI_ERROR   eci_set_actab       (EFC_ERROR *err,char *p);
47ECI_ERROR   eci_set_uctab       (EFC_ERROR *err,unsigned char *p);
48char       *eci_sub_field       (char subfld_char,char *buff);
49void        eci_trm_free        (long idx);
50long        eci_trm_new         (EFC_ERROR *err);
51char       *eci_uctab           (char *buff);
52ECI_ERROR   eci_unlock          (long idx,long mfn,int lock_type);
Note: See TracBrowser for help on using the browser.