From ca9998460241863a3f06c282c72c37a8ec738155 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Thu, 24 Feb 2000 20:37:14 +0000 Subject: [PATCH] moved from libCom/misc to here --- src/registry/Makefile | 4 ++++ src/registry/registryDeviceSupport.h | 17 +++++++++++++++ src/registry/registryDriverSupport.h | 18 ++++++++++++++++ src/registry/registryRecordType.h | 32 ++++++++++++++++++++++++++++ 4 files changed, 71 insertions(+) create mode 100644 src/registry/registryDeviceSupport.h create mode 100644 src/registry/registryDriverSupport.h create mode 100644 src/registry/registryRecordType.h 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 */