diff --git a/src/registry/Makefile b/src/registry/Makefile index 8cf6cb5e7..16a26824c 100644 --- a/src/registry/Makefile +++ b/src/registry/Makefile @@ -5,6 +5,10 @@ include $(TOP)/configure/CONFIG # INC += registry.h +INC += registryDeviceSupport.h +INC += registryDriverSupport.h +INC += registryRecordType.h + # general contents of library on all platforms # diff --git a/src/registry/registryDeviceSupport.h b/src/registry/registryDeviceSupport.h new file mode 100644 index 000000000..6dbf29c4c --- /dev/null +++ b/src/registry/registryDeviceSupport.h @@ -0,0 +1,17 @@ +#ifndef INCregistryDeviceSupporth +#define INCregistryDeviceSupporth + + +#ifdef __cplusplus +extern "C" { +#endif + +int registryDeviceSupportAdd(const char *name,struct dset *pdset); +struct dset *registryDeviceSupportFind(const char *name); + +#ifdef __cplusplus +} +#endif + + +#endif /* INCregistryDeviceSupporth */ diff --git a/src/registry/registryDriverSupport.h b/src/registry/registryDriverSupport.h new file mode 100644 index 000000000..e0efafd12 --- /dev/null +++ b/src/registry/registryDriverSupport.h @@ -0,0 +1,18 @@ +#ifndef INCregistryDriverSupporth +#define INCregistryDriverSupporth + + +#ifdef __cplusplus +extern "C" { +#endif + +/* c interface definitions */ +int registryDriverSupportAdd(const char *name,struct drvet *pdrvet); +struct drvet *registryDriverSupportFind(const char *name); + +#ifdef __cplusplus +} +#endif + + +#endif /* INCregistryDriverSupporth */ diff --git a/src/registry/registryRecordType.h b/src/registry/registryRecordType.h new file mode 100644 index 000000000..8fb0da978 --- /dev/null +++ b/src/registry/registryRecordType.h @@ -0,0 +1,32 @@ +#ifndef INCregistryRecordTypeh +#define INCregistryRecordTypeh + +struct dbRecordType; +struct rset; +struct dbBase; + +typedef int (*computeSizeOffset)(struct dbRecordType *pdbRecordType); + + +typedef struct recordTypeLocation { + struct rset *prset; + computeSizeOffset sizeOffset; +}recordTypeLocation; + + +#ifdef __cplusplus +extern "C" { +#endif + +int registryRecordTypeAdd(const char *name,recordTypeLocation *prtl); +recordTypeLocation *registryRecordTypeFind(const char *name); + +/* The following function is generated by registerRecordDeviceDriver/pl */ +int registerRecordDeviceDriver(struct dbBase *pdbbase); + +#ifdef __cplusplus +} +#endif + + +#endif /* INCregistryRecordTypeh */