Removed epicsShareAPI
This commit is contained in:
@@ -51,6 +51,7 @@ epicsShareFunc int epicsShareAPI registryAdd(
|
||||
pentry = gphAdd(gphPvt,name,registryID);
|
||||
if(!pentry) return(FALSE);
|
||||
pentry->userPvt = (void *)data;
|
||||
printf("regsistryAdd %p %s %p\n",registryID,name,data);
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ static void *registryID = (void *)&function;
|
||||
epicsShareFunc int epicsShareAPI registryFunctionAdd(
|
||||
const char *name,REGISTRYFUNCTION func)
|
||||
{
|
||||
printf("regisryFunctionAdd name %s func %p\n",name,func);
|
||||
return(registryAdd(registryID,name,(void *)func));
|
||||
}
|
||||
|
||||
@@ -34,7 +35,9 @@ epicsShareFunc REGISTRYFUNCTION epicsShareAPI registryFunctionFind(
|
||||
const char *name)
|
||||
{
|
||||
REGISTRYFUNCTION func;
|
||||
printf("regisryFunctionFind name %s\n",name);
|
||||
func = (REGISTRYFUNCTION)registryFind(registryID,name);
|
||||
printf("regisryFunctionFind name %s func %p\n",name,func);
|
||||
if(!func) {
|
||||
func = (REGISTRYFUNCTION)registryFind(0,name);
|
||||
if(func)registryFunctionAdd(name,func);
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef void (*REGISTRYFUNCTION)(void);
|
||||
typedef void (*REGISTRYFUNCTION)();
|
||||
|
||||
typedef struct registryFunctionRef {
|
||||
const char *name;
|
||||
|
||||
@@ -20,7 +20,7 @@ struct dbRecordType;
|
||||
struct rset;
|
||||
struct dbBase;
|
||||
|
||||
typedef int (epicsShareAPI *computeSizeOffset)(struct dbRecordType *pdbRecordType);
|
||||
typedef int (*computeSizeOffset)(struct dbRecordType *pdbRecordType);
|
||||
|
||||
typedef struct recordTypeLocation {
|
||||
struct rset *prset;
|
||||
|
||||
Reference in New Issue
Block a user