home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
DBMANP.ZIP
/
DBINC.H
< prev
next >
Wrap
Text File
|
1992-07-13
|
1KB
|
40 lines
#define INCL_BASE
#include <os2.h>
#define READONLY 0
#define READWRITE 1
#define UNLOCK 0
#define LOCK 1
typedef struct _fldinfo
{
CHAR name[11];
CHAR type;
CHAR length;
CHAR decimal;
}FLDDATA;
typedef struct _dbreport
{
CHAR updatey;
CHAR updatem;
CHAR updated;
LONG maxrec;
SHORT reclngth;
}DBREPORT;
/*function prototypes*/
SHORT EXPENTRY AddRec (SHORT dbhndl, CHAR *recdata, LONG *recnum, SHORT lockstatus) ;
SHORT EXPENTRY PutRec (SHORT dbhndl, CHAR *recdata, LONG recnum) ;
SHORT EXPENTRY GetRec (SHORT dbhndl, CHAR *recdata, LONG recnum) ;
SHORT EXPENTRY DeleteRec (SHORT dbhndl, LONG recnum) ;
SHORT EXPENTRY RecoverRec(SHORT dbhndl, LONG recnum) ;
SHORT EXPENTRY LockRec (SHORT dbhndl, LONG recnum) ;
SHORT EXPENTRY UnLockRec (SHORT dbhndl, LONG recnum) ;
SHORT EXPENTRY DbOpen (CHAR *file, SHORT readwrite) ;
SHORT EXPENTRY DbClose (SHORT dbhndl) ;
SHORT EXPENTRY DbCreate (CHAR *file, SHORT fldcount, FLDDATA *info) ;
SHORT EXPENTRY DbInfo (SHORT hndl, DBREPORT *info) ;
SHORT EXPENTRY GetField (SHORT dbhndl, LONG recnum, CHAR *buff, SHORT fieldnum) ;
SHORT EXPENTRY PutField (SHORT dbhndl, LONG recnum, CHAR *buff, SHORT fieldnum) ;
SHORT EXPENTRY FldInfo (SHORT hndl, SHORT fldnum, FLDDATA *fldinfo) ;