This is Unofficial EPICS BASE Doxygen Site
asTrapWrite.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2002 The University of Chicago, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
19 #ifndef INCasTrapWriteh
20 #define INCasTrapWriteh
21 
22 #include "libComAPI.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 typedef struct asTrapWriteMessage {
32  const char *userid;
33  const char *hostid;
49  void *userPvt;
50  int dbrType;
52  void *data;
54 
58 typedef void *asTrapWriteId;
59 
74 typedef void(*asTrapWriteListener)(asTrapWriteMessage *pmessage,int after);
75 
81 LIBCOM_API asTrapWriteId epicsStdCall asTrapWriteRegisterListener(
82  asTrapWriteListener func);
87 LIBCOM_API void epicsStdCall asTrapWriteUnregisterListener(
88  asTrapWriteId id);
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /*INCasTrapWriteh*/
int dbrType
Data type from ca/db_access.h, NOT dbFldTypes.h.
Definition: asTrapWrite.h:50
void * serverSpecific
A field for use by the server.
Definition: asTrapWrite.h:41
void * data
Might be NULL if no data is available.
Definition: asTrapWrite.h:52
void * asTrapWriteId
An identifier needed to unregister an listener.
Definition: asTrapWrite.h:58
void * userPvt
A field for use by the asTrapWriteListener.
Definition: asTrapWrite.h:49
LIBCOM_API asTrapWriteId epicsStdCall asTrapWriteRegisterListener(asTrapWriteListener func)
Register function to be called on asTrapWriteListener.
Definition: asTrapWrite.c:73
const char * hostid
Hostid of whoever orginated the request.
Definition: asTrapWrite.h:33
LIBCOM_API void epicsStdCall asTrapWriteUnregisterListener(asTrapWriteId id)
Unregister asTrapWriteListener.
Definition: asTrapWrite.c:86
The message passed to registered listeners.
Definition: asTrapWrite.h:31
const char * userid
Userid of whoever orginated the request.
Definition: asTrapWrite.h:32
void(* asTrapWriteListener)(asTrapWriteMessage *pmessage, int after)
Pointer to a listener function.
Definition: asTrapWrite.h:74
int no_elements
Array length.
Definition: asTrapWrite.h:51
struct asTrapWriteMessage asTrapWriteMessage
The message passed to registered listeners.