-
Notifications
You must be signed in to change notification settings - Fork 6
/
getArchiveRecord.h
31 lines (28 loc) · 1.39 KB
/
getArchiveRecord.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*************************************************************************\
* Copyright (c) 1994-2004 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 1997-2003 Southeastern Universities Research Association,
* as Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 1997-2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
#ifndef _getArchiveRecord_h
#define _getArchiveRecord_h
#define REQUEST_MODE_ONE_SHOT 1 /* please,don't use it, eat IOC mem */
#define REQUEST_MODE_CONTINUE 2
#define ERROR 1
#define OK 0
#include <tsDefs.h>
int getArchiveRecord(
char *name, /* channal name */
struct timeval *from, /* asking time from */
struct timeval *to, /* asking time up to */
long requestMode, /* short request or continues */
struct timeval **returnedTime, /* real time up to */
double **returnedData, /* data */
short **returnedStatus, /* status */
long *returnedCount, /* real count of data */
short *needMoreData);
#endif /* _getArchiveRecord_h */