Neonode zForce(TM) SDK

StreamingDataFrame.h
Go to the documentation of this file.
1
8 #ifndef DATAFRAME_STREAMINGDATAFRAME_H
9 #define DATAFRAME_STREAMINGDATAFRAME_H 1
10
11 #ifndef ZFORCECOMMON_H
12 #error Please include "zForceCommon.h" before this file.
13 #endif // ZFORCECOMMON_H
14
18 typedef struct StreamingDataFrame StreamingDataFrame;
24 struct StreamingDataFrame
25 {
34 char * DataFrameType;
42 Connection * Connection;
50 uint64_t RelativeTimeoutMilliSeconds;
61 void (* Destructor) (DataFrame * self);
62
63 uint8_t * Data;
64 uint32_t Length;
65 };
66
67 #ifdef __cplusplus
68 extern "C"
69 {
70 #endif // __cplusplus
71
83 DLLEXTERNAL StreamingDataFrame * StreamingDataFrame_New (uint64_t relativeTimeoutMilliSeconds, uint32_t length);
84
85 #ifdef __cplusplus
86 }
87 #endif // __cplusplus
88
92 #define STREAMINGDATAFRAMETYPE "Streaming"
93
94 #endif // DATAFRAME_STREAMINGDATAFRAME_H
StreamingDataFrame_New
DLLEXTERNAL StreamingDataFrame * StreamingDataFrame_New(uint64_t relativeTimeoutMilliSeconds, uint32_t length)
Create a new StreamingDataFrame.
Connection
The main Connection struct.
Definition: Connection.h:66
DataFrame
Struct containing the DataFrame information.
Definition: DataFrame.h:25
StreamingDataFrame
Struct containing the StreamingDataFrame information.
Definition: StreamingDataFrame.h:25
StreamingDataFrame::Destructor
void(* Destructor)(DataFrame *self)
Destructor for StreamingDataFrame.
Definition: StreamingDataFrame.h:61
StreamingDataFrame::Connection
Connection * Connection
A Connection pointer that associates the DataFrame with the Connection.
Definition: StreamingDataFrame.h:42
StreamingDataFrame::Length
uint32_t Length
Length of the data.
Definition: StreamingDataFrame.h:64
StreamingDataFrame::RelativeTimeoutMilliSeconds
uint64_t RelativeTimeoutMilliSeconds
Relative timeout in MilliSeconds.
Definition: StreamingDataFrame.h:50
StreamingDataFrame::DataFrameType
char * DataFrameType
A string pointer to the type of DataFrame.
Definition: StreamingDataFrame.h:34
StreamingDataFrame::Data
uint8_t * Data
Pointer to the data.
Definition: StreamingDataFrame.h:63