#ifndef BPM_CP_CARRIER_H_H #define BPM_CP_CARRIER_H_H #ifdef __cplusplus extern "C" { #endif /* Some arbitrary sizes */ #define MAX_NAME_LENGTH 50 #define MAX_TASK_LENGTH 40 /* Per-Carrier information kept in the registry. * Used by device support to 'look up' the Carrier */ typedef struct BpmCpCarrierDescRec_ { epicsMutexId mutex; void *carrier_p; unsigned instance; /* Can possibly be removed in lieu of name */ const char name[MAX_NAME_LENGTH]; } BpmCpCarrierDescRec, *BpmCpCarrierDesc; /* Data private to device support; to be stored in record's DPVT field */ typedef struct BpmCpCarrierPvtRec_ { BpmCpCarrierDesc carrierdesc_p; char task[MAX_TASK_LENGTH]; } BpmCpCarrierPvtRec, *BpmCpCarrierPvt; BpmCpCarrierDesc devCarrierRegister(const char *name); #ifdef __cplusplus }; #endif #endif