changes so that db doesnt call as

This commit is contained in:
Marty Kraimer
2000-02-24 19:47:22 +00:00
parent 59a559055e
commit fea2884cfe
3 changed files with 12 additions and 3 deletions

View File

@@ -65,7 +65,6 @@ of this distribution.
#include "recSup.h"
#include "recGbl.h"
#include "special.h"
#include "asLib.h"
extern long lset_stack_not_empty;
struct dbBase *pdbbase=NULL;
@@ -84,7 +83,15 @@ static short mapDBFToDBR[DBF_NTYPES] = {
* that flag becomes unset.
*/
#define MAX_LOCK 10
/* The following is to handle SPC_AS */
static SPC_ASCALLBACK spcAsCallback = 0;
void dbSpcAsRegisterCallback(SPC_ASCALLBACK func)
{
spcAsCallback = func;
}
static long putSpecial(DBADDR *paddr,int pass)
{
long int (*pspecial)()=NULL;
@@ -105,7 +112,7 @@ static long putSpecial(DBADDR *paddr,int pass)
else
scanAdd(precord);
}else if((special==SPC_AS) && (pass==1)) {
asChangeGroup((ASMEMBERPVT *)&precord->asp,precord->asg);
if(spcAsCallback) (*spcAsCallback)(precord);
}
}else {
if( prset && (pspecial = (prset->special))) {

View File

@@ -245,6 +245,9 @@ void dbNotifyAdd(struct dbCommon *pfrom,struct dbCommon *pto);
void dbNotifyCancel(PUTNOTIFY *pputnotify);
/*dbNotifyCompletion called by recGblFwdLink */
void dbNotifyCompletion(struct dbCommon *precord);
typedef void(*SPC_ASCALLBACK)(struct dbCommon *);
/*dbSpcAsRegisterCallback called by access security */
void dbSpcAsRegisterCallback(SPC_ASCALLBACK func);
long dbBufferSize(short dbrType,long options,long nRequest);
long dbValueSize(short dbrType);

View File

@@ -75,7 +75,6 @@ of this distribution.
#include "envDefs.h"
#include "dbStaticLib.h"
#include "initHooks.h"
#include "asLib.h"
extern struct dbBase *pdbbase;
LOCAL int initialized=FALSE;