sybdb.h
上传用户:bilang918
上传日期:2010-03-24
资源大小:558k
文件大小:143k
- */
- #define DBSTOPTRACE ((DBUSMALLINT)0x0001)
- #define DBTDSHEADER ((DBUSMALLINT)0x0002)
- #define DBTDSDATA ((DBUSMALLINT)0x0004)
- #define DBTDSATT ((DBUSMALLINT)0x0008)
- #define DBTDSCONNECT ((DBUSMALLINT)0x0010)
- #define DBTDSDUMP ((DBUSMALLINT)0x0020)
-
- /*
- ** DB__TRACEBUF_SIZE - This is the size of the actual data buffer
- ** that will be allocated by dbtraceon().
- */
- #define DB__TRACEBUF_SIZE 3000
-
-
- /*
- ** DBLOGINFO - A structure used by TDS passthru login routines
- ** to communicate login parameters between Open Client and OpenServer.
- */
- typedef struct dbloginfo
- {
- BYTE tds_level[4]; /* The version of TDS to be used. */
- DBINT packet_size; /* The TDS packet size to be used. */
- BYTE flt8_type; /* Type of SYBFLT8 on this
- ** platform.
- */
- BYTE flt4_type; /* Type of SYBREAL on this
- ** platform.
- */
- BYTE int4_type; /* Type of SYBINT4 on this
- ** platform.
- */
- BYTE int2_type; /* Type of SYBINT2 on this
- ** platform.
- */
- BYTE date_type; /* Type of SYBDATETIME on
- ** this platform.
- */
- BYTE char_type; /* Type of SYBCHAR on this
- ** platform.
- */
- BYTE noshort; /* Whether to convert short
- ** data types to long values.
- */
- BYTE language[MAXNAME]; /* The name of the language to
- ** be used for this session.
- */
- BYTE langlen; /* The length of language[] */
- BYTE setlang; /* Whether the language field
- ** contains a real value.
- */
- BYTE charset[MAXNAME]; /* The name of the charset to
- ** be used for this session.
- */
- BYTE charsetlen; /* The length of charset[] */
- BYTE setcharset; /* Whether the charset field
- ** contains a real value.
- */
- BYTE ldmpld; /* Dump/load indicator. */
- BYTE lseclogin; /* security login options */
- BYTE lsecbulk; /* security bulk copy options */
- BYTE reqcap[16]; /* request capabilities */
- BYTE respcap[16]; /* response capabilities */
- /*
- ** The next set of fields are not part of the passthru mechanism.
- ** These fields are in this structure so that CT-Lib users can
- ** pass login properties from one connection handle to another
- ** connection handle using the ct_getloginfo()/ct_setloginfo()
- ** APIs.
- **
- ** The field setctprops indicates whether or not these fields
- ** have been set. ct_getloginfo() will set this field to 1 when
- ** moving information into this structure. Open Server and DB-Lib
- ** will not. ct_setloginfo() will then use this field to
- ** determine if these fields have valid values.
- */
- BYTE setctprops; /* CT-Lib login properties set */
- BYTE appname[30]; /* application name */
- BYTE applen; /* length of application name */
- BYTE hostname[30]; /* host name */
- BYTE hostlen; /* length of host name */
- BYTE password[30]; /* password */
- BYTE pwdlen; /* length of password */
- BYTE username[256]; /* user name */
- BYTE userlen; /* length of user name. */
- DBVOIDPTR *locale; /* Pointer to CS_LOCALE structure*/
- } DBLOGINFO;
- /*
- ** DBCHARSET
- **
- ** This structure is used to hold character set specific information.
- ** More than one dbproc may reference a given DBCHARSET record, so a
- ** use count is maintained so we know when we can free the structure.
- */
- typedef struct dbcharset
- {
- char name[DBMAXNAME+1]; /* Name of the character set
- ** (null-terminated)
- */
- DBSMALLINT type; /* Type of the character set */
- DBTINYINT id; /* Character set id */
- void *char_data; /* Pointer to image data from
- ** Server. May be NULL.
- */
- void *chatr; /* Pointer to structure which provides
- ** meaning to data pointed to by
- ** char_data. This structure is filled
- ** in by the function
- ** build_char_attrib(). Both the
- ** structure declaration and the
- ** function are provided by the
- ** Server group.
- */
- int usecount; /* Number of DBPROCESSes using this
- ** character set.
- */
- struct dbcharset *next; /* Next structure in linked list.
- */
- } DBCHARSET;
- /*
- ** DBCURSOR is a generic (hidden) structure
- */
- typedef struct dbcursor DBCURSOR;
-
-
- /*
- ** DBPROCESS - This is the basic DBLIB structure. It contains the command
- ** sent to the dataserver as well as the results of the command.
- ** It also includes any error or information messages, including the
- ** done packet, returned by the dataserver. If buffering is turned on,
- ** this structure also stores the data rows.
- */
- struct dbprocess
- {
- struct servbuf *dbfile; /* dataserver connection */
- DBINT dbstatus; /* status field for dbprocess */
- BYTE dbtoken; /* current dataserver token */
- DBSTRING *dbcmdbuf; /* command buffer */
- int dbcurcmd; /* number of the current cmd results */
- DBINT dbprocid; /* procid, if any, of the current cmd */
- DBCOLINFO *dbcols; /* linked list of column information */
- DBALTHEAD *dbalts; /* linked list of alt column info */
- DBROW *dbfirstdata; /* doubly linked list of returned row
- * data
- */
- DBROW *dbcurdata; /* current row in dbfirstdata */
- DBROW *dblastdata; /* last row in dbfirstdata, usually
- * dbcurdata
- */
- DBOFF *dboffsets; /* list of offsets and controls in
- * dbcmdbuf
- */
- int dboffadjust; /* adjustment factor for offsets */
- DBSMALLINT dbcuroffset; /* active offset for results */
- DBOPTION *dbopts;
- DBSTRING *dboptcmd; /* option string to send to server */
- DBINFO *dbmsgs; /* linked list of info and error
- * messages
- */
- DBINFO *dbcurmsg; /* last message read by dbgetmsg() */
- DBMSG *dbsrvmsg; /* Contents of the MSG datastream */
- BYTE *dbcurparam; /* Previous MSG parameter */
- BYTE dbcurparlen; /* Length of previous parameter */
- DBDONE dbdone; /* done information */
- char dbcurdb[DBMAXNAME+1]; /* the name of the current
- * database
- */
- DB_DBBUSY_FUNC dbbusy; /* function to call when waiting on
- * dataserver
- */
- DB_DBIDLE_FUNC dbidle; /* function to call when waiting on
- * dataserver
- */
- DB_DBCHKINTR_FUNC dbchkintr; /* user's function to call to check for
- * queued interrupts
- */
- DB_DBHNDLINTR_FUNC dbhndlintr; /* user's interrupt handler */
- int dbbufsize; /* the size of the row buffer, if
- * enabled
- */
- NULLBIND dbnullbind; /* what to bind for nulls */
- int dbsticky; /* sticky flags like attn */
- int dbnumorders; /* number of columns in the query's
- * "order by" clause.
- */
- int *dbordercols; /* array of the column numbers found in
- * the query's "order by" clause.
- */
- DBBOOL dbavail; /* is this dbproc available for general
- * use?
- */
- int dbftosnum; /* this id is used when recording the
- * frontend-to-Server SQL traffic of
- * this DBPROCESS.
- */
- DBBOOL dbdead; /* TRUE if this DBPROCESS has become
- * useless, usually due to a fatal
- * Server error, or a communications
- * failure.
- */
- DBBOOL dbenabled; /* TRUE if this DBPROCESS is allowed to
- * be used in DB-LIBRARY functions. The
- * user may set this flag FALSE,
- * possibly within an error handler, if
- * execution of further commands would
- * just cause further errors.
- * DB-LIBRARY initially sets this flag
- * TRUE. The user may set and re-set
- * this flag at will.
- */
- DBBOOL dbsqlsent; /* TRUE if the SQL in the command
- * buffer has already been sent to
- * the SQL Server.
- */
- DBTABNAME *dbtabnames; /* linked-list of table-name
- * information used by "browse mode".
- */
- DBINT dbspid; /* The Server process-id of this
- * DBPROCESS. It's returned in the
- * row-count field of the done-packet
- * which signifies a successful login.
- */
- DBPARAM *dbparams; /* linked-list of function
- * return-values.
- */
- BCPDESC *db_bcpdesc; /* A structure containing bulk-copy
- * information.
- */
- DBBOOL dbtransbegun; /* Indicates that a text data transfer
- * is under way.
- */
- DBINT dbbytesleft; /* This is a countdown variable, used
- * to track the number of bytes which
- * are still to be sent as part of
- * a dbwritetext() command. Or, in
- * dbreadtext() as the number still
- * to read on the net.
- */
- DBINT dbretstat; /* This is the return-status from
- * a stored procedure.
- */
- DBBOOL dbhasretstat; /* Is the return-status valid? */
- DBINT dbtextlimit; /* This is the longest text-column
- * that this dbproc will accept
- * from the Server. Any additional
- * bytes will be discarded.
- * If 0, then there's no limit.
- */
- BYTE *dbuserdata; /* A pointer to any data that the
- * the user wishes to associate with
- * this DBPROCESS.
- */
- DBINT dbmsgno; /* The number of the Server message
- */
- char dblogin_node[DBMAXNAME + 1];
- /* The node that the Companion
- * Server's redirector has
- * recommended to us.
- */
- int dbcolcount; /* The number of regular columns
- * in the current set of results.
- */
- DBBOOL db_oldtds; /* TRUE if the TDS version is older
- * than 4.0.
- */
- int db_tdsversion; /* tds version for this dbproc. */
- DBLOCALE *dblocale; /* The localization info for this
- * DBPROCESS.
- */
- DBVOIDPTR rowfile; /* The file-pointer used by
- * dbprrow().
- */
- DBINT dbsprlen; /* The current length of a string
- * being built up by one of the
- * dbspr* functions.
- */
- DBINT dbsprmaxlen; /* The maximum length of a buffer
- * being filled by one of the dbspr*
- * functions.
- */
- char *dbsprnextchar; /* The next available character
- * of a buffer being filled by one of
- * the dbspr* functions.
- */
- int dbprlinelen; /* The length of a display line.
- * This information is used by
- * the dbspr* functions.
- */
- #if VMS
- int db_event_mask; /* a mask used to determine what
- ** event has happened in the front-
- ** end i/o routines.
- */
- long db_event_flag; /* the number of the event flag used
- ** to check for timeout, interrupt
- ** (control_c) or i/o completion.
- */
- short db_io_channel; /* channel assigned to sys$command
- ** of the controlling process.
- */
- short r_iosb[4]; /* I/O status for read */
- short w_iosb[4]; /* I/O status for write */
- /* for async event notifications */
- long db_recvfl_ast; /* async recvfill_a original ast */
- long db_recvfl_astp; /* async recvfill_a original astp */
- long db_recvfl_fr; /* async recvfill_a original final_result */
- long db_rp_fr; /* pending readfill_a final_result */
- void *dbpoll_ast; /* Structure containing information
- ** needed during asynchronous dbpoll().
- */
- #endif /* VMS */
- long db_netflags; /* flags used for buffer and network
- ** synchronization */
- int db_ncprevmode; /* Previous netlib mode */
- DBRPCREC *db_rpcrec; /* rpc record */
- DBVOIDPTR db_events; /* table of event structs */
- DBEVENTREC *db_curevent; /* the current event */
- DBEVENTREC *db_defeventrec; /* the default eventrec */
- DBCHAR *db_waitevent; /* the name of the event being waited
- ** for synchronously. This field is
- ** only valid if dbstatus has the
- ** DB_INLINENOTIFY bit is set.
- */
- DBUSMALLINT db_traceflags; /* active traces */
- DBTRACEREC *db_tracerec; /* trace structure */
- DBTRACEBUF *db_tracebuf; /* the trace data itself */
- DBINT db_traceid; /* the id of this dbproc. */
- BYTE db__priv[8];
- DBBOOL first_token_read;
- /* This field is set when
- * the first token of a server
- * response has been read by
- * dbpoll().
- */
- DBINT db_packetsize; /* The packet size being used by
- ** this DBPROCESS.
- */
- DBBOOL use_logintime; /* If this field is set TRUE,
- * it indicates that this
- * DBPROCESS should use the
- * DbLoginSecs timeout value,
- * instead of the usual DbTimeout.
- */
- DBBOOL dbuse_in_progress;
- /* If this field is set TRUE,
- * it indicates that this DBPROCESS
- * is in the middle of a dbuse()
- * operation, and should use the
- * dbuse() error- and message-handlers.
- */
- DBBOOL textok_in_progress;
- /* If this field is set TRUE,
- * it indicates that this DBPROCESS
- * is in the middle of a db__textok()
- * operation, and should use the
- * db__textok() error- and
- * message-handlers.
- */
- DBBOOL textok; /* This field indicates whether
- * or not the server which is
- * connected to this DBPROCESS
- * can handle TEXT and IMAGE data.
- */
- DBBOOL recovering; /* If this field is set TRUE, it
- * indicates that a dbuse() operation
- * is continuing to attempt to
- * access a database which is
- * still recovering.
- */
- char servcharset[DBMAXNAME+1];
- /* The name of the server's character
- ** set.
- */
- char charset[DBMAXNAME+1];
- /* The name of the character set
- ** currently in use.
- */
- DBCHARSET *charset_info; /* Pointer to information about the
- ** current character set.
- */
- DBBOOL charset_cnv; /* Indicates whether the server
- ** can convert from/to its character
- ** set to the Clients character set.
- ** TRUE means the conversion is being
- ** done.
- */
- DBBOOL need_charset_info;
- /* Indicates whether we need to
- ** load character set info from the
- ** Server.
- */
- DBUSMALLINT envchange_rcv; /* Bit mask indicating whether
- ** TDS ENVCHANGE packets were received.
- */
- DBROWDATA *db_readtext; /* Place to hold text timestamp and
- ** text pointer when reading text
- ** rows via dbreadtext().
- */
- DBINT requested_packetsize;
- /* packet size requested
- ** by user via DBSETLPACKET().
- */
- DBVOIDPTR dbcapability; /* dblib capabilities */
- DBBOOL db_srv_b1; /* Is server B1 or not ? */
- struct dbprocess *dbnext;/* DBPROCESSes are kept track of
- * in a big linked-list.
- */
- DBCURSOR * dbcursors; /* cursors for this dbproc */
- #if OS2 || NT || NETWARE386 || SYB_MAC || MSDOS || WIN3
- DBINT dbexpedited; /* Buffer for exp data */
- void *db_compstatus; /* Net Lib completion status */
- DBBOOL db_readpending; /* To indicate read is pending */
- DBINT db_readbytes; /* To indicate the bytes read */
- #endif /* OS2 || NT || NETWARE386 || SYB_MAC || MSDOS || WIN3 */
- DBBOOL db_bcplabels; /* TRUE if bcp will include security
- * labels.
- */
- #if defined(NETWARE386) || defined(OS2) || defined(NT) || defined(WIN3) || defined(MSDOS)
- /* 003: This field for bcp support */
- int db_filmode; /* DB_BINARY or DB_TEXT */
- DBBOOL cnv_date2char_short;
- /* To indicate if a short date will
- ** result in converting date to a
- ** string.
- */
- #endif
- };
- typedef struct dbprocess DBPROCESS;
- #if defined(NETWARE386) || defined(OS2) || defined(NT) || defined(WIN3) || defined(MSDOS)
- /* Use these defines for db_filmode */
- #define DB_BINARY 1
- #define DB_TEXT 2
- #endif
- #define DBTDS_UNKNOWN 0
- #define DBTDS_2_0 1 /* used by pre 4.0 SQL Server */
- #define DBTDS_3_4 2 /* used by Microsoft SQL Server (3.0) */
- #define DBTDS_4_0 3 /* used by 4.0 SQL Server */
- #define DBTDS_4_2 4 /* used by 4.2 SQL Server */
- #define DBTDS_4_6 5 /* used by 2.0 OpenServer and
- ** 4.6 SQL Server.
- */
- #define DBTDS_4_9_5 6 /* used by 4.9.5 (NCR) SQL Server */
- #define DBTDS_5_0 7 /* used by 5.0 SQL Server */
- /*
- ** Possible values for the envchange_rcv field.
- */
- #define DB__DB_ENVCHANGE ((DBUSMALLINT) 0x0001)
- #define DB__LANG_ENVCHANGE ((DBUSMALLINT) 0x0002)
- #define DB__CHAR_ENVCHANGE ((DBUSMALLINT) 0x0004)
- #define DB__PACKET_ENVCHANGE ((DBUSMALLINT) 0x0008)
- /*
- ** Various macros used to extract information from the DBPROCESS structure
- */
- #define DBTDS(a) dbtds(a)
- #define DBCURCMD(a) dbcurcmd(a)
- #define DBCURROW(a) dbcurrow(a)
- #define DBFIRSTROW(a) dbfirstrow(a)
- #define DBLASTROW(a) dblastrow(a)
- #define DBROWTYPE(a) dbrowtype(a)
- #define DBMORECMDS(a) dbmorecmds(a)
- #define DONECONTINUE(a) donecontinue(a)
- #define DBCOUNT(a) dbcount(a)
- #define DBCMDROW(x) dbcmdrow(x)
- #define DBROWS(x) dbrows(x)
- #define DBNUMORDERS(a) dbnumorders(a)
- #define DBBUFFULL(a) dbbuffull(a)
- #define DBMOREROWS(a) dbmorerows(a)
- #define DBISAVAIL(a) dbisavail(a)
- #define DBDEAD(a) dbdead(a)
- #define DBIORDESC(a) dbiordesc(a)
- #define DBIOWDESC(a) dbiowdesc(a)
- #define DBRBUF(a) dbrbuf(a)
- #define DBGETTIMEOUT(a) db__getDbTimeout(a)
- #define DBGETTIME() db__getDbTimeout((DBPROCESS *)0)
- #if (VMS)
- #define DBZEROSPACE(dest, bytes) db__bzero(dest, bytes)
- #else
- #define DBZEROSPACE(dest, bytes) MEMZERO(dest, bytes)
- #endif /* (VMS) */
- /*
- ** These constants are used for RPC options.
- */
- #define DBRPCRECOMPILE ((DBUSMALLINT)0x0001)
- #define DBNOTIFYALL ((DBUSMALLINT)0x0002)
- #define DBNOTIFYNEXT ((DBUSMALLINT)0x0004)
- /*
- ** These constants are used for RPC parameter status values.
- */
- #define DBRPCNORETURN ((BYTE)0)
- #define DBRPCRETURN ((BYTE)1)
- #define DB__NODEFAULT ((BYTE)2)
- /*
- ** This constant is used in dbregparam() to define
- ** a parameter that has no default data value.
- */
- #define DBNODEFAULT ((DBINT)-2)
- /*
- ** dbgetlusername() and dbgetlpassword() will return DBTRUNCATED if it
- ** truncated the user name.
- */
- #define DBTRUNCATED -1
- /*
- ** Internal Remote procedure call names used by Event Manager.
- ** These names must match the names used by Open/SQL Server.
- */
- #define DB__EVENTNOTIFY_RPC "sp_regwatch"
- #define DB__CANCELNOTIFY_RPC "sp_regnowatch"
- #define DB__ADD_EVENT_RPC "sp_regcreate"
- #define DB__DROPEVENT_RPC "sp_regdrop"
- #define DB__EVENTLIST_RPC "sp_reglist"
- #define DB__NOTIFYLIST_RPC "sp_regwatchlist"
- /*
- ** Define the legal values for the dbregwatch() options parameter.
- ** These may be OR-able symbols.
- */
- #define DBNOTIFYONCE ((DBUSMALLINT)0x0002)
- #define DBNOTIFYALWAYS ((DBUSMALLINT)0x0004)
- #define DBSYNC ((DBUSMALLINT)0x0020)
- #define DBASYNC ((DBUSMALLINT)0x0040)
- #define DBWAIT ((DBUSMALLINT)0x0022)
- #define DBNOWAITONE ((DBUSMALLINT)0x0042)
- #define DBNOWAITALL ((DBUSMALLINT)0x0044)
- /*
- ** new function return codes.
- */
- #define DB_PASSTHRU_MORE ((RETCODE)1)
- #define DB_PASSTHRU_EOM ((RETCODE)2)
- #define DBNOPROC ((RETCODE)2)
-
- /*
- ** retcodes for security label handlers
- */
- #define DBERRLABEL ((RETCODE)0)
- #define DBMORELABEL ((RETCODE)1)
- #define DBENDLABEL ((RETCODE)2)
- /*
- ** definition of a TDS packet size.
- */
- #define DB__PACKET_SIZE ((DBINT)512)
- #define DB__MIN_PACKET_SIZE ((DBINT)256)
- #define DB__MAX_PACKET_SIZE ((DBINT)9999)
-
- #if VMS
- /* These constants are used for VMS network manipulation. */
- #define DB_IO_EVENT 1
- #define DB_INTERRUPT_EVENT 2
- #define DB_TIMER_EVENT 4
- #endif /* VMS */
- /*
- ** Macros to set values in the LOGINREC structure.
- */
- #define DBSETHOST 1
- #define DBSETUSER 2
- #define DBSETPWD 3
- #define DBSETHID 4
- #define DBSETAPP 5
- #define DBSETBCP 6
- #define DBSETNATLANG 7
- #define DBSETNOSHORT 8
- #define DBSETHIER 9
- #define DBSETCHARSET 10
- #define DBSETPACKET 11
- #define DBSETENCRYPT 12
- #define DBSETLABELED 13
- #define DBSETLHOST(a,b) dbsetlname((a), (b), DBSETHOST)
- #define DBSETLUSER(a,b) dbsetlname((a), (b), DBSETUSER)
- #define DBSETLPWD(a,b) dbsetlname((a), (b), DBSETPWD)
- #define DBSETLHID(a,b) dbsetlname((a), (b), DBSETHID)
- #define DBSETLAPP(a,b) dbsetlname((a), (b), DBSETAPP)
- #define DBSETLNATLANG(a,b) dbsetlname((a), (b), DBSETNATLANG)
- #define DBSETLNOSHORT(a,b) dbsetlbool((a), (b), DBSETNOSHORT)
- #define DBSETLHIER(a,b) dbsetlshort((a), (b), DBSETHIER)
- #define DBGETLHIER(a) dbgetlhier(a)
- #define DBSETLROLE(a,b) dbsetlrole(a,b)
- #define DBSETLCOMP(a,b) dbsetlcomp(a,b)
- #define DBSETLPACKET(a,b) dbsetllong((a), (b), DBSETPACKET)
- #define DBSETLCHARSET(a,b) dbsetlname((a), (b), DBSETCHARSET)
- #define DBSETLENCRYPT(a,b) dbsetlbool((a), (b), DBSETENCRYPT)
- #define DBSETLLABELED(a,b) dbsetlbool((a), (b), DBSETLABELED)
- #define DBSETONECOMP(a,b) (a)[ ((b)-1)/8 ] |= ( 0x80 >> (( (b)-1 ) % 8) )
- /*
- ** Db-Lib cursor defines
- */
- /*
- ** dbcursoropen() concurrency options
- */
- #define CUR_READONLY 1 /* Readonly cursor, no data
- ** modifications allowed.*/
- #define CUR_LOCKCC 2 /* Intent to update, all data fetched
- ** is locked if inside a transaction*/
- #define CUR_OPTCC 3 /* Optimistic concurrency control,
- ** data modifications succeed only
- ** if the row hasn't been updated since
- ** the last fetch. */
- #define CUR_OPTCCVAL 4 /* OPTCC based on column values, data
- ** modifications succeed only if selected
- ** values haven't changed since last
- ** fetch */
- #define CUR_MAXVALUE CUR_OPTCCVAL
- /*
- ** scrollopt options for dbcursoropen(). Any other number indicates
- ** mixed keyset and dynamic
- */
- #define CUR_FORWARD 0 /* Forward only scroll */
- #define CUR_KEYSET -1 /* Keyset driven */
- #define CUR_DYNAMIC 1 /* Fully dynamic */
- /*
- ** Following flags define the fetchtype in the dbcursorfetch function
- */
- #define FETCH_FIRST 1 /* Fetch the very first n rows */
- #define FETCH_NEXT 2 /* Fetch next n rows */
- #define FETCH_PREV 3 /* Fetch previous n rows */
- #define FETCH_RANDOM 4 /* Fetch starting with given row # */
- #define FETCH_RELATIVE 5 /* Fetch relative to previous row #*/
- #define FETCH_LAST 6 /* Fetch the very last n rows */
- #define FETCH_MAXVALUE FETCH_LAST
- /*
- ** Following flags define the per row status flags filled by dbcursorfetch
- */
- #define FTC_SUCCEED 0x01 /* Fetch of given row succeeded */
- /* Fetch failed if this is not set*/
- #define FTC_MISSING 0x02 /* The row is missing */
- #define FTC_ENDOFKEYSET 0x04 /* The last row in the keyset */
- #define FTC_ENDOFRESULTS 0x08 /* End of results set reached */
- /*
- ** Following values define the operator types for dbcursor
- */
- #define CRS_UPDATE 1 /* Update operation */
- #define CRS_DELETE 2 /* Delete operation */
- #define CRS_INSERT 3 /* Insert operation */
- #define CRS_REFRESH 4 /* Refetch row */
- #define CRS_LOCKCC 5 /* Refetch row with lock */
- /*
- ** DB-Library Versions
- ** - When adding new versions, use the next highest value
- */
- #define DBVERSION_UNKNOWN 0
- #define DBVERSION_46 1 /* Version 4.6 */
- #define DBVERSION_100 2 /* Version 10.0 */
- #ifndef COMPILE_STYLE
- #define COMPILE_STYLE KR_C_COMPILE
- #endif
- #ifndef TYPE_TOKEN_1
- #define TYPE_TOKEN_1
- #endif
- #ifndef TYPE_TOKEN_2
- #define TYPE_TOKEN_2 CS_PUBLIC
- #endif
- /*
- ** 002 Function prototypes for all public functions
- */
- CS_START_EXTERN_C
- typedef int (CS_PUBLIC DBFAR *EHANDLEFUNC) PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int severity,
- int dberr,
- int oserr,
- char DBFAR *dberrstr,
- char DBFAR *oserrstr
- ));
- typedef int (CS_PUBLIC DBFAR *MHANDLEFUNC) PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT msgno,
- int msgstate,
- int severity,
- char DBFAR *msgtext,
- char DBFAR *srvname,
- char DBFAR *procname,
- int line
- ));
- RETCODE CS_PUBLIC dbsetlname PROTOTYPE((
- LOGINREC DBFAR *lptr,
- char DBFAR *name,
- int type
- ));
- RETCODE CS_PUBLIC dbsetlbool PROTOTYPE((
- LOGINREC DBFAR *lptr,
- int value,
- int type
- ));
- RETCODE CS_PUBLIC dbsetlshort PROTOTYPE((
- LOGINREC DBFAR *lptr,
- int value,
- int type
- ));
- RETCODE CS_PUBLIC dbsetllong PROTOTYPE((
- LOGINREC DBFAR *lptr,
- long value,
- int type
- ));
- int CS_PUBLIC db__getDbTimeout PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbcmdrow PROTOTYPE((
- DBPROCESS DBFAR *x
- ));
- int CS_PUBLIC dbtds PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- int CS_PUBLIC dbcurcmd PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC dbcurrow PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC dbfirstrow PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC dblastrow PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC dbrowtype PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- RETCODE CS_PUBLIC dbmorecmds PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC donecontinue PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- RETCODE CS_PUBLIC dbrows PROTOTYPE((
- DBPROCESS DBFAR *x
- ));
- int CS_PUBLIC dbnumorders PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBBOOL CS_PUBLIC dbbuffull PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBBOOL CS_PUBLIC dbmorerows PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBBOOL CS_PUBLIC dbisavail PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBBOOL CS_PUBLIC dbdead PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- int CS_PUBLIC dbiordesc PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- int CS_PUBLIC dbiowdesc PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBBOOL CS_PUBLIC dbrbuf PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- DBINT CS_PUBLIC dbcount PROTOTYPE((
- DBPROCESS DBFAR *a
- ));
- short CS_PUBLIC dbgetlhier PROTOTYPE((
- LOGINREC *a
- ));
- CS_VOID CS_PUBLIC dbsetlrole PROTOTYPE((
- LOGINREC *a,
- int b
- ));
- int CS_PUBLIC dbsetlcomp PROTOTYPE((
- LOGINREC *a,
- BYTE *b
- ));
- BYTE CS_PUBLIC dbgetlrole PROTOTYPE((
- LOGINREC *a
- ));
- BYTE DBFAR * CS_PUBLIC dbadata PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- BYTE DBFAR * CS_PUBLIC dbbylist PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int id,
- int DBFAR *size
- ));
- BYTE DBFAR * CS_PUBLIC dbdata PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- BYTE DBFAR * CS_PUBLIC dbgetuserdata PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- BYTE DBFAR * CS_PUBLIC dbretdata PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int retnum
- ));
- DBBINARY DBFAR * CS_PUBLIC dbtsnewval PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBBINARY DBFAR * CS_PUBLIC dbtxptr PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBBINARY DBFAR * CS_PUBLIC dbtxtimestamp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBBINARY DBFAR * CS_PUBLIC dbtxtsnewval PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBBOOL CS_PUBLIC db12hour PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *language
- ));
- DBBOOL CS_PUBLIC dbcharsetconv PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBBOOL CS_PUBLIC dbcolbrowse PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnum
- ));
- DBBOOL CS_PUBLIC dbhasretstat PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBBOOL CS_PUBLIC dbisopt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int option,
- char DBFAR *param
- ));
- DBBOOL CS_PUBLIC dbtabbrowse PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int tabnum
- ));
- DBBOOL CS_PUBLIC dbvarylen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBBOOL CS_PUBLIC dbwillconvert PROTOTYPE((
- int srctype,
- int desttype
- ));
- DBINT CS_PUBLIC dbadlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- DBINT CS_PUBLIC dbaltlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- DBINT CS_PUBLIC dbcollen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBINT CS_PUBLIC dbconvert PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int srctype,
- BYTE DBFAR *src,
- DBINT srclen,
- int desttype,
- BYTE DBFAR *dest,
- DBINT destlen
- ));
- DBINT CS_PUBLIC dbconvert_ps PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int srctype,
- BYTE DBFAR *src,
- DBINT srclen,
- int desttype,
- BYTE DBFAR *dest,
- DBINT destlen,
- DBTYPEINFO DBFAR *typeinfo
- ));
- DBINT CS_PUBLIC dbdatepart PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int whichpart,
- DBDATETIME DBFAR *datetime
- ));
- DBINT CS_PUBLIC dbdatlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBINT CS_PUBLIC dbreadpage PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *p_dbname,
- DBINT pageno,
- BYTE buf[]
- ));
- DBINT CS_PUBLIC dbretlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int retnum
- ));
- DBINT CS_PUBLIC dbretstatus PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBINT CS_PUBLIC dbspid PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBINT CS_PUBLIC dbspr1rowlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBINT CS_PUBLIC dbtextsize PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBPROCESS DBFAR * CS_PUBLIC dbopen PROTOTYPE((
- LOGINREC DBFAR *password,
- char DBFAR *servername
- ));
- DBSORTORDER DBFAR * CS_PUBLIC dbloadsort PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBTYPEINFO DBFAR * CS_PUBLIC dbcoltypeinfo PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- EHANDLEFUNC CS_PUBLIC dberrhandle PROTOTYPE((
- EHANDLEFUNC handler
- ));
- LOGINREC DBFAR * CS_PUBLIC dblogin PROTOTYPE((
- void
- ));
- MHANDLEFUNC CS_PUBLIC dbmsghandle PROTOTYPE((
- MHANDLEFUNC handler
- ));
- RETCODE CS_PUBLIC dbaltbind PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int column,
- int vartype,
- DBINT varlen,
- BYTE DBFAR *destvar
- ));
- RETCODE CS_PUBLIC dbaltbind_ps PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int column,
- int vartype,
- DBINT varlen,
- BYTE DBFAR *destvar,
- DBTYPEINFO DBFAR *typeinfo
- ));
- RETCODE CS_PUBLIC dbanullbind PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int column,
- DBINT DBFAR *indicator
- ));
- RETCODE CS_PUBLIC dbbind PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int column,
- int vartype,
- DBINT varlen,
- BYTE DBFAR *destvar
- ));
- RETCODE CS_PUBLIC dbbind_ps PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int column,
- int vartype,
- DBINT varlen,
- BYTE DBFAR *destvar,
- DBTYPEINFO DBFAR *typeinfo
- ));
- RETCODE CS_PUBLIC dbcancel PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbcancel_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbcanquery PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbcanquery_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbclropt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int option,
- char DBFAR *param
- ));
- RETCODE CS_PUBLIC dbcmd PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *cmdstring
- ));
- RETCODE CS_PUBLIC dbcursor PROTOTYPE((
- DBCURSOR DBFAR *cursor,
- DBINT optype,
- DBINT bufno,
- BYTE DBFAR *table,
- BYTE DBFAR *values
- ));
- RETCODE CS_PUBLIC dbcursorbind PROTOTYPE((
- DBCURSOR DBFAR *cursor,
- int column,
- int vartype,
- DBINT varlen,
- DBINT DBFAR *pvarlen,
- BYTE DBFAR *pvaraddr,
- DBTYPEINFO DBFAR *typeinfo
- ));
- RETCODE CS_PUBLIC dbcursorclose PROTOTYPE((
- DBCURSOR DBFAR *cursor
- ));
- RETCODE CS_PUBLIC dbcursorcolinfo PROTOTYPE((
- DBCURSOR DBFAR *cursor,
- DBINT column,
- DBCHAR DBFAR *colname,
- DBINT DBFAR *coltype,
- DBINT DBFAR *collen,
- DBINT DBFAR *usertype
- ));
- RETCODE CS_PUBLIC dbcursorfetch PROTOTYPE((
- DBCURSOR DBFAR *cursor,
- DBINT fetchtype,
- DBINT rownum
- ));
- RETCODE CS_PUBLIC dbcursorinfo PROTOTYPE((
- DBCURSOR DBFAR *cursor,
- DBINT DBFAR *ncols,
- DBINT DBFAR *nrows
- ));
- RETCODE CS_PUBLIC dbdate4zero PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBDATETIME4 DBFAR *dateptr
- ));
- RETCODE CS_PUBLIC dbdatechar PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *charbuf,
- int datepart,
- int value
- ));
- RETCODE CS_PUBLIC dbdatecrack PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBDATEREC DBFAR *dateinfo,
- DBDATETIME DBFAR *datetime
- ));
- RETCODE CS_PUBLIC dbdatezero PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBDATETIME DBFAR *dateptr
- ));
- RETCODE CS_PUBLIC dbfree_xlate PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBXLATE DBFAR *xlt_tosrv,
- DBXLATE DBFAR *xlt_todisp
- ));
- RETCODE CS_PUBLIC dbfreesort PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBSORTORDER DBFAR *sortorder
- ));
- RETCODE CS_PUBLIC dbgetloginfo PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBLOGINFO DBFAR *DBFAR *loginfo
- ));
- RETCODE CS_PUBLIC dbinit PROTOTYPE((
- void
- ));
- RETCODE CS_PUBLIC dbload_xlate PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *srv_charset,
- char DBFAR *xlate_name,
- DBXLATE DBFAR *DBFAR *xlt_tosrv,
- DBXLATE DBFAR *DBFAR *xlt_todisp
- ));
- RETCODE CS_PUBLIC dbmny4add PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *m1,
- DBMONEY4 DBFAR *m2,
- DBMONEY4 DBFAR *sum
- ));
- RETCODE CS_PUBLIC dbmny4copy PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *src,
- DBMONEY4 DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmny4divide PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *m1,
- DBMONEY4 DBFAR *m2,
- DBMONEY4 DBFAR *quotient
- ));
- RETCODE CS_PUBLIC dbmny4minus PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *src,
- DBMONEY4 DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmny4mul PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *m1,
- DBMONEY4 DBFAR *m2,
- DBMONEY4 DBFAR *product
- ));
- RETCODE CS_PUBLIC dbmny4sub PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *m1,
- DBMONEY4 DBFAR *m2,
- DBMONEY4 DBFAR *difference
- ));
- RETCODE CS_PUBLIC dbmny4zero PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *mny4ptr
- ));
- RETCODE CS_PUBLIC dbmnyadd PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *m1,
- DBMONEY DBFAR *m2,
- DBMONEY DBFAR *sum
- ));
- RETCODE CS_PUBLIC dbmnycopy PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *src,
- DBMONEY DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmnydec PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr
- ));
- RETCODE CS_PUBLIC dbmnydivide PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *m1,
- DBMONEY DBFAR *m2,
- DBMONEY DBFAR *quotient
- ));
- RETCODE CS_PUBLIC dbmnydown PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr,
- int divisor,
- int DBFAR *remainder
- ));
- RETCODE CS_PUBLIC dbmnyinc PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr
- ));
- RETCODE CS_PUBLIC dbmnyinit PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr,
- int trim,
- DBBOOL DBFAR *negative
- ));
- RETCODE CS_PUBLIC dbmnymaxneg PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmnymaxpos PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmnyminus PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *src,
- DBMONEY DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbmnymul PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *m1,
- DBMONEY DBFAR *m2,
- DBMONEY DBFAR *product
- ));
- RETCODE CS_PUBLIC dbmnyndigit PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr,
- DBCHAR DBFAR *value,
- DBBOOL DBFAR *zero
- ));
- RETCODE CS_PUBLIC dbmnyscale PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr,
- int multiplier,
- int addend
- ));
- RETCODE CS_PUBLIC dbmnysub PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *m1,
- DBMONEY DBFAR *m2,
- DBMONEY DBFAR *difference
- ));
- RETCODE CS_PUBLIC dbmnyzero PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *mnyptr
- ));
- RETCODE CS_PUBLIC dbmoretext PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT size,
- BYTE DBFAR *text
- ));
- RETCODE CS_PUBLIC dbnpcreate PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbnpdefine PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen
- ));
- RETCODE CS_PUBLIC dbnullbind PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int column,
- DBINT DBFAR *indicator
- ));
- #if VMS
- RETCODE CS_PUBLIC dbopen_a PROTOTYPE((
- LOGINREC DBFAR *password,
- char DBFAR *servername,
- DBPROCESS DBFAR *DBFAR *dbprocptr,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbpoll PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- long milliseconds,
- DBPROCESS DBFAR *DBFAR *ready_dbproc,
- int DBFAR *return_reason
- ));
- RETCODE CS_PUBLIC dbdataready PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbpoll_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- long milliseconds,
- DBPROCESS DBFAR *DBFAR *ready_dbproc,
- int DBFAR *return_reason,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbprrow PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbrecvpassthru PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *DBFAR *bufhandle
- ));
- RETCODE CS_PUBLIC dbregdrop PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen
- ));
- RETCODE CS_PUBLIC dbregexec PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int options
- ));
- RETCODE CS_PUBLIC dbreghandle PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen,
- INTFUNCPTR handler
- ));
- RETCODE CS_PUBLIC dbreginit PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen
- ));
- RETCODE CS_PUBLIC dbreglist PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbregnowatch PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen
- ));
- RETCODE CS_PUBLIC dbregparam PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int type,
- DBINT datalen,
- DBVOIDPTR data
- ));
- RETCODE CS_PUBLIC dbregwatch PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBCHAR DBFAR *name,
- int namelen,
- int options
- ));
- RETCODE CS_PUBLIC dbregwatchlist PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbresults PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbresults_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbrpcinit PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *rpcname,
- int options
- ));
- RETCODE CS_PUBLIC dbrpcparam PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *paramname,
- int status,
- int type,
- DBINT maxlen,
- DBINT datalen,
- BYTE DBFAR *value
- ));
- RETCODE CS_PUBLIC dbrpcsend PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbrpwset PROTOTYPE((
- LOGINREC DBFAR *loginrec,
- char DBFAR *servername,
- char DBFAR *password,
- int pwlen
- ));
- RETCODE CS_PUBLIC dbsafestr PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *src,
- DBINT srclen,
- char DBFAR *dest,
- DBINT destlen,
- int quotetype
- ));
- RETCODE CS_PUBLIC dbsechandle PROTOTYPE((
- DBINT type,
- INTFUNCPTR handler
- ));
- RETCODE CS_PUBLIC dbsendpassthru PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *buf
- ));
- RETCODE CS_PUBLIC dbsetconnect PROTOTYPE((
- char DBFAR *service_type,
- char DBFAR *net_type,
- char DBFAR *net_name,
- char DBFAR *machine_name,
- char DBFAR *port
- ));
- RETCODE CS_PUBLIC dbsetdefcharset PROTOTYPE((
- char DBFAR *charset
- ));
- RETCODE CS_PUBLIC dbsetdeflang PROTOTYPE((
- char DBFAR *language
- ));
- RETCODE CS_PUBLIC dbsetloginfo PROTOTYPE((
- LOGINREC DBFAR *loginrec,
- DBLOGINFO DBFAR *loginfo
- ));
- RETCODE CS_PUBLIC dbsetlogintime PROTOTYPE((
- int seconds
- ));
- RETCODE CS_PUBLIC dbsetmaxprocs PROTOTYPE((
- int maxprocs
- ));
- RETCODE CS_PUBLIC dbsetnotifs PROTOTYPE((
- int event_state
- ));
- RETCODE CS_PUBLIC dbsetnull PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int bindtype,
- int bindlen,
- BYTE DBFAR *bindval
- ));
- RETCODE CS_PUBLIC dbsetopt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int option,
- char DBFAR *char_param,
- int int_param
- ));
- RETCODE CS_PUBLIC dbsetsecurity PROTOTYPE((
- LOGINREC DBFAR *loginrec,
- char DBFAR *labelname,
- char DBFAR *labelvalue
- ));
- RETCODE CS_PUBLIC dbsettime PROTOTYPE((
- int seconds
- ));
- RETCODE CS_PUBLIC dbsettimeout PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int seconds
- ));
- RETCODE CS_PUBLIC dbsetversion PROTOTYPE((
- DBINT version
- ));
- RETCODE CS_PUBLIC dbspr1row PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *buffer,
- DBINT buf_len
- ));
- RETCODE CS_PUBLIC dbsprhead PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *buffer,
- DBINT buf_len
- ));
- RETCODE CS_PUBLIC dbsprline PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *buffer,
- DBINT buf_len,
- int linechar
- ));
- RETCODE CS_PUBLIC dbsqlexec PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbsqlexec_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbsqlok PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- RETCODE CS_PUBLIC dbsqlok_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbsqlsend PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC dbstrcpy PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int start,
- int numbytes,
- char DBFAR *dest
- ));
- RETCODE CS_PUBLIC dbtsput PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBBINARY DBFAR *newts,
- int newtslen,
- int tabnum,
- char DBFAR *tabname
- ));
- RETCODE CS_PUBLIC dbtxtsput PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBBINARY DBFAR *newtxts,
- int colnum
- ));
- RETCODE CS_PUBLIC dbuse PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *name
- ));
- RETCODE CS_PUBLIC dbwritepage PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *p_dbname,
- DBINT pageno,
- DBINT size,
- BYTE buf[]
- ));
- RETCODE CS_PUBLIC dbwritetext PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *objname,
- DBBINARY DBFAR *textptr,
- int textptrlen,
- DBBINARY DBFAR *timestamp,
- int log,
- DBINT size,
- BYTE DBFAR *text
- ));
- RETCODE CS_PUBLIC dbgetrow PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT row
- ));
- RETCODE CS_PUBLIC dbnextrow PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #if VMS
- STATUS CS_PUBLIC dbnextrow_a PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- RETCODE DBFAR *final_result,
- void (DBFAR *ast_proc )(),
- BYTE DBFAR *ast_param
- ));
- #endif /* VMS */
- RETCODE CS_PUBLIC dbreadtext PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- void DBFAR *buf,
- DBINT bufsize
- ));
- RETCODE CS_PUBLIC dbsetrow PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT row
- ));
- void DBFAR * CS_PUBLIC dbcursoropen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *stmt,
- DBINT scrollopt,
- DBINT concuropt,
- DBINT nrows,
- DBINT DBFAR *pstat
- ));
- void DBFAR * CS_PUBLIC dbgetcharattrib PROTOTYPE((
- DBPROCESS DBFAR *p
- ));
- char DBFAR * CS_PUBLIC dbchange PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- char DBFAR * CS_PUBLIC dbcolname PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- char DBFAR * CS_PUBLIC dbcolsource PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- char DBFAR * CS_PUBLIC dbdateorder PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *language
- ));
- char DBFAR * CS_PUBLIC dbdayname PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *language,
- int daynum
- ));
- char DBFAR * CS_PUBLIC dbgetchar PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int n
- ));
- char DBFAR * CS_PUBLIC dbgetcharset PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- char DBFAR * CS_PUBLIC dbgetnatlang PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- char DBFAR * CS_PUBLIC dbmonthname PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *language,
- int monthnum,
- int shortform
- ));
- char DBFAR * CS_PUBLIC dbname PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- char DBFAR * CS_PUBLIC dbprtype PROTOTYPE((
- int type
- ));
- char DBFAR * CS_PUBLIC dbqual PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int tabnum,
- char DBFAR *tabname
- ));
- char DBFAR * CS_PUBLIC dbretname PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int retnum
- ));
- char DBFAR * CS_PUBLIC dbservcharset PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- char DBFAR * CS_PUBLIC dbtabname PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int tabnum
- ));
- char DBFAR * CS_PUBLIC dbtabsource PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnum,
- int DBFAR *tabnum
- ));
- char DBFAR * CS_PUBLIC dbversion PROTOTYPE((
- void
- ));
- int CS_PUBLIC dbaltcolid PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- int CS_PUBLIC dbaltop PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- int CS_PUBLIC dbalttype PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- int CS_PUBLIC dbaltutype PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int computeid,
- int colnumber
- ));
- int CS_PUBLIC dbbufsize PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbcoltype PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- DBINT CS_PUBLIC dbcolutype PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int colnumber
- ));
- int CS_PUBLIC dbdate4cmp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBDATETIME4 DBFAR *d1,
- DBDATETIME4 DBFAR *d2
- ));
- int CS_PUBLIC dbdatecmp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBDATETIME DBFAR *d1,
- DBDATETIME DBFAR *d2
- ));
- int CS_PUBLIC dbdatename PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *charbuf,
- int datepart,
- DBDATETIME DBFAR *datetime
- ));
- int CS_PUBLIC dbgetlusername PROTOTYPE((
- LOGINREC DBFAR *login,
- BYTE DBFAR *name_buffer,
- int buffer_len
- ));
- int CS_PUBLIC dbgetlpassword PROTOTYPE((
- LOGINREC DBFAR *login,
- BYTE DBFAR *passwd_buffer,
- int buffer_len
- ));
- int CS_PUBLIC dbgetmaxprocs PROTOTYPE((
- void
- ));
- int CS_PUBLIC dbgetoff PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int type,
- int start
- ));
- int CS_PUBLIC dbgetpacket PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbmny4cmp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY4 DBFAR *m1,
- DBMONEY4 DBFAR *m2
- ));
- int CS_PUBLIC dbmnycmp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBMONEY DBFAR *m1,
- DBMONEY DBFAR *m2
- ));
- int CS_PUBLIC dbnumalts PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int id
- ));
- int CS_PUBLIC dbnumcols PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbnumcompute PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbnumrets PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbordercol PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int order
- ));
- int CS_PUBLIC dbrettype PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int retnum
- ));
- int CS_PUBLIC dbstrcmp PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *str1,
- int len1,
- char DBFAR *str2,
- int len2,
- DBSORTORDER DBFAR *sortorder
- ));
- int CS_PUBLIC dbstrlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbstrsort PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *str1,
- int len1,
- char DBFAR *str2,
- int len2,
- DBSORTORDER DBFAR *sortorder
- ));
- int CS_PUBLIC dbtabcount PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbtsnewlen PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- int CS_PUBLIC dbxlate PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *src,
- int srclen,
- char DBFAR *dest,
- int destlen,
- DBXLATE DBFAR *xlt,
- int DBFAR *srcbytes_used,
- int srcend,
- int DBFAR *status
- ));
- void CS_PUBLIC dbclose PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- void CS_PUBLIC dbclrbuf PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT n
- ));
- void CS_PUBLIC dbdbchange PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINFO DBFAR *info
- ));
- void CS_PUBLIC dbexit PROTOTYPE((
- void
- ));
- void CS_PUBLIC dbfreebuf PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- void CS_PUBLIC dbfreequal PROTOTYPE((
- char DBFAR *qualptr
- ));
- void CS_PUBLIC dbloginfree PROTOTYPE((
- LOGINREC DBFAR *loginptr
- ));
- #if VMS
- void CS_PUBLIC dbpoll_timer_ast PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- #endif /* VMS */
- void CS_PUBLIC dbprhead PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- void CS_PUBLIC dbrecftos PROTOTYPE((
- char DBFAR *filename
- ));
- void CS_PUBLIC dbrpwclr PROTOTYPE((
- LOGINREC DBFAR *loginrec
- ));
- void CS_PUBLIC dbsetavail PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- void CS_PUBLIC dbsetbusy PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DB_DBBUSY_FUNC busyfunc
- ));
- void CS_PUBLIC dbsetidle PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DB_DBIDLE_FUNC idlefunc
- ));
- void CS_PUBLIC dbsetifile PROTOTYPE((
- char DBFAR *filename
- ));
- void CS_PUBLIC dbsetinterrupt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DB_DBCHKINTR_FUNC chkintr,
- DB_DBHNDLINTR_FUNC hndlintr
- ));
- void CS_PUBLIC dbsetuserdata PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *ptr
- ));
- void CS_PUBLIC dbuse_msg_handler PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT msgno,
- int msgstate,
- int severity,
- char DBFAR *msgtext,
- char DBFAR *servername,
- char DBFAR *procname,
- int line
- ));
- /* BCP prototypes */
- BCPDESC DBFAR * CS_PUBLIC bcpinit PROTOTYPE((
- LOGINREC DBFAR *login,
- char DBFAR *servername,
- char DBFAR *tblname,
- char DBFAR *hfile,
- int direction
- ));
- BYTE CS_PUBLIC bcp_hosttype PROTOTYPE((
- DBPROCESS DBFAR *a,
- int b
- ));
- DBBOOL CS_PUBLIC bcp_getl PROTOTYPE((
- LOGINREC DBFAR *login
- ));
- DBINT CS_PUBLIC bcp_batch PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBINT CS_PUBLIC bcp_done PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- DBINT CS_PUBLIC bcpdone PROTOTYPE((
- BCPDESC DBFAR *bcpdesc
- ));
- RETCODE CS_PUBLIC bcp_bind PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *varaddr,
- int prefixlen,
- DBINT varlen,
- BYTE DBFAR *terminator,
- int termlen,
- int type,
- int table_column
- ));
- RETCODE CS_PUBLIC bcp_colfmt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int host_colnum,
- int host_type,
- int host_prefixlen,
- DBINT host_collen,
- BYTE DBFAR *host_term,
- int host_termlen,
- int table_colnum
- ));
- RETCODE CS_PUBLIC bcp_colfmt_ps PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int host_colnum,
- int host_type,
- int host_prefixlen,
- DBINT host_collen,
- BYTE DBFAR *host_term,
- int host_termlen,
- int table_colnum,
- DBTYPEINFO DBFAR *typeinfo
- ));
- RETCODE CS_PUBLIC bcp_collen PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT varlen,
- int table_column
- ));
- RETCODE CS_PUBLIC bcp_colptr PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- BYTE DBFAR *colptr,
- int table_column
- ));
- RETCODE CS_PUBLIC bcp_columns PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int host_colcount
- ));
- RETCODE CS_PUBLIC bcp_control PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int field,
- DBINT value
- ));
- RETCODE CS_PUBLIC bcp_exec PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT DBFAR *rows_copied
- ));
- RETCODE CS_PUBLIC bcp_init PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *tblname,
- char DBFAR *hfile,
- char DBFAR *errfile,
- int direction
- ));
- RETCODE CS_PUBLIC bcp_moretext PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBINT size,
- BYTE DBFAR *text
- ));
- RETCODE CS_PUBLIC bcp_options PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- int option,
- BYTE DBFAR *value,
- int valuelen
- ));
- RETCODE CS_PUBLIC bcp_readfmt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *filename
- ));
- RETCODE CS_PUBLIC bcp_sendrow PROTOTYPE((
- DBPROCESS DBFAR *dbproc
- ));
- RETCODE CS_PUBLIC bcp_setxlate PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- DBXLATE DBFAR *xlt_tosrv,
- DBXLATE DBFAR *xlt_todisp
- ));
- RETCODE CS_PUBLIC bcp_writefmt PROTOTYPE((
- DBPROCESS DBFAR *dbproc,
- char DBFAR *filename
- ));
- RETCODE CS_PUBLIC bcpabort PROTOTYPE((
- BCPDESC DBFAR *bcpdesc
- ));
- RETCODE CS_PUBLIC bcpbind PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- BYTE DBFAR *varaddr,
- int varlen,
- char DBFAR *term,
- int type,
- int table_column
- ));
- RETCODE CS_PUBLIC bcpcollen PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- int varlen,
- int table_column
- ));
- RETCODE CS_PUBLIC bcpcolumn PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- int columns
- ));
- RETCODE CS_PUBLIC bcpcontrol PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- int field,
- BYTE DBFAR *value
- ));
- RETCODE CS_PUBLIC bcpexec PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- DBINT DBFAR *rows_copied
- ));
- RETCODE CS_PUBLIC bcpformat PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- int index,
- int length,
- char DBFAR *term,
- int type,
- int table_column
- ));
- RETCODE CS_PUBLIC bcpsendrow PROTOTYPE((
- BCPDESC DBFAR *bcpdesc
- ));
- RETCODE CS_PUBLIC bcpcolptr PROTOTYPE((
- BCPDESC DBFAR *bcpdesc,
- BYTE DBFAR *varaddr,
- int table_column
- ));
- DBPROCESS DBFAR * CS_PUBLIC open_commit PROTOTYPE((
- LOGINREC DBFAR *login,
- char DBFAR *service
- ));
- void CS_PUBLIC close_commit PROTOTYPE((
- DBPROCESS DBFAR *connect
- ));
- void CS_PUBLIC build_xact_string PROTOTYPE((
- char DBFAR *xact_name,
- char DBFAR *service_name,
- DBINT commid,
- char DBFAR *result
- ));
- DBINT CS_PUBLIC start_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- char DBFAR *application_name,
- char DBFAR *xact_name,
- int count
- ));
- RETCODE CS_PUBLIC commit_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid
- ));
- RETCODE CS_PUBLIC abort_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid
- ));
- RETCODE CS_PUBLIC remove_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid,
- int n
- ));
- RETCODE CS_PUBLIC scan_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid
- ));
- int CS_PUBLIC stat_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid
- ));
- int CS_PUBLIC probe_xact PROTOTYPE((
- DBPROCESS DBFAR *connect,
- DBINT commid
- ));
- #ifndef __SYB_INTERNAL__
- RETCODE CS_VARARGS dbfcmd PROTOTYPE((
- DBPROCESS DBFAR *dbproc CS_ELLIPSE
- ));
- int CS_VARARGS dbstrbuild PROTOTYPE((
- DBPROCESS DBFAR *dbproc CS_ELLIPSE
- ));
- #endif /* !defined(__SYB_INTERNAL__) */
- CS_END_EXTERN_C
- /*
- ** Include the Windows DB-Library 4.2 Compatibility Layer.
- */
- #if defined(USE_42_MAPPING)
- #include <db42to10.h>
- #endif /* USE_42_MAPPING */
- #endif /* __sybdb__ */