das2C
das core C utilities (v3)
serial.h
Go to the documentation of this file.
1 /* Copyright (C) 2024 Chris Piker <chris-piker@uiowa.edu>
2  *
3  * This file is part of das2C, the Core Das2 C Library.
4  *
5  * das2C is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License version 2.1 as published
7  * by the Free Software Foundation.
8  *
9  * das2C is distributed in the hope that it will be useful, but WITHOUT ANY
10  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12  * more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * version 2.1 along with das2C; if not, see <http://www.gnu.org/licenses/>.
16  */
17 
20 #ifndef _das_serial_h_
21 #define _das_serial_h_
22 
23 #include <das2/stream.h>
24 #include <das2/dataset.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 
46 DAS_API DasDs* dasds_from_xmlheader3(DasBuf* pBuf, StreamDesc* pParent, int nPktId);
47 
63 DAS_API DasDs* dasds_from_xmlheader2(DasBuf* pBuf, StreamDesc* pParent, int nPktId);
64 
65 
79 
80 
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 
87 #endif /* _serial */
Objects which define a iteration space.
int DasErrCode
return code type 0 indicates success, negative integer indicates failure
Definition: defs.h:164
DAS_API DasErrCode dasds_decode_data(DasDs *pDs, DasBuf *pBuf)
Given a das dataset decode it's packets.
DAS_API DasDs * dasds_from_xmlheader3(DasBuf *pBuf, StreamDesc *pParent, int nPktId)
Define a das dataset and all it's constiutant parts from a das3 XML header.
DAS_API DasDs * dasds_from_xmlheader2(DasBuf *pBuf, StreamDesc *pParent, int nPktId)
Define a das dataset and all it's constiutant parts from a legacy das2 XML header.
Objects representing a single das stream.
#define StreamDesc
Compatability macro For backwards compatability, all functions with the name pattern DasStream are al...
Definition: stream.h:132
Buffer class to handle accumulating byte streams.
Definition: buffer.h:47
Das Datasets.
Definition: dataset.h:139