Xively C library
Dependents: xively-jumpstart-demo
This is Xively C library, the code lives on GitHub.
See our example program and the tutorial, documentation can bee found here.
src/libxively/csv_data.h@0:53753690a8bf, 2013-05-13 (annotated)
- Committer:
- xively
- Date:
- Mon May 13 19:28:22 2013 +0000
- Revision:
- 0:53753690a8bf
libxively v0.1.1-rc0
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xively | 0:53753690a8bf | 1 | // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved. |
xively | 0:53753690a8bf | 2 | // This is part of Xively C library, it is under the BSD 3-Clause license. |
xively | 0:53753690a8bf | 3 | |
xively | 0:53753690a8bf | 4 | /** |
xively | 0:53753690a8bf | 5 | * \file csv_data.h |
xively | 0:53753690a8bf | 6 | * \author Olgierd Humenczuk |
xively | 0:53753690a8bf | 7 | * \brief Implements CSV _data layer_ encoders and decoders specific to Xively CSV data format |
xively | 0:53753690a8bf | 8 | */ |
xively | 0:53753690a8bf | 9 | |
xively | 0:53753690a8bf | 10 | #ifndef __CSV_DATA_H__ |
xively | 0:53753690a8bf | 11 | #define __CSV_DATA_H__ |
xively | 0:53753690a8bf | 12 | |
xively | 0:53753690a8bf | 13 | #include "xively.h" |
xively | 0:53753690a8bf | 14 | |
xively | 0:53753690a8bf | 15 | #ifdef __cplusplus |
xively | 0:53753690a8bf | 16 | extern "C" { |
xively | 0:53753690a8bf | 17 | #endif |
xively | 0:53753690a8bf | 18 | |
xively | 0:53753690a8bf | 19 | const char* csv_encode_datapoint( const xi_datapoint_t* dp ); |
xively | 0:53753690a8bf | 20 | |
xively | 0:53753690a8bf | 21 | |
xively | 0:53753690a8bf | 22 | int csv_encode_datapoint_in_place( |
xively | 0:53753690a8bf | 23 | char* buffer, size_t buffer_size |
xively | 0:53753690a8bf | 24 | , const xi_datapoint_t* datapoint ); |
xively | 0:53753690a8bf | 25 | |
xively | 0:53753690a8bf | 26 | const char* csv_encode_create_datastream( |
xively | 0:53753690a8bf | 27 | const char* buffer |
xively | 0:53753690a8bf | 28 | , const xi_datapoint_t* dp ); |
xively | 0:53753690a8bf | 29 | |
xively | 0:53753690a8bf | 30 | xi_feed_t* csv_decode_feed( |
xively | 0:53753690a8bf | 31 | const char* buffer |
xively | 0:53753690a8bf | 32 | , xi_feed_t* feed ); |
xively | 0:53753690a8bf | 33 | |
xively | 0:53753690a8bf | 34 | xi_datapoint_t* csv_decode_datapoint( const char* data, xi_datapoint_t* dp ); |
xively | 0:53753690a8bf | 35 | |
xively | 0:53753690a8bf | 36 | #ifdef __cplusplus |
xively | 0:53753690a8bf | 37 | } |
xively | 0:53753690a8bf | 38 | #endif |
xively | 0:53753690a8bf | 39 | |
xively | 0:53753690a8bf | 40 | #endif // __CSV_DATA_H__ |