test
Fork of mbed-libxively-6eca970 by
src/libxively/csv_data_layer.c@0:82702e998d3f, 2013-06-26 (annotated)
- Committer:
- xively
- Date:
- Wed Jun 26 10:40:43 2013 +0000
- Revision:
- 0:82702e998d3f
libxively v0.1.1-rc0 (34c8b32)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xively | 0:82702e998d3f | 1 | // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved. |
xively | 0:82702e998d3f | 2 | // This is part of Xively C library, it is under the BSD 3-Clause license. |
xively | 0:82702e998d3f | 3 | |
xively | 0:82702e998d3f | 4 | /** |
xively | 0:82702e998d3f | 5 | * \file csv_data_layer.c |
xively | 0:82702e998d3f | 6 | * \author Olgierd Humenczuk |
xively | 0:82702e998d3f | 7 | * \brief Implements CSV _data layer_ abstration interface [see csv_data_layer.h and data_layer.h] |
xively | 0:82702e998d3f | 8 | */ |
xively | 0:82702e998d3f | 9 | |
xively | 0:82702e998d3f | 10 | #include "csv_data_layer.h" |
xively | 0:82702e998d3f | 11 | |
xively | 0:82702e998d3f | 12 | const data_layer_t* get_csv_data_layer() |
xively | 0:82702e998d3f | 13 | { |
xively | 0:82702e998d3f | 14 | static const data_layer_t __csv_data_layer = { |
xively | 0:82702e998d3f | 15 | csv_encode_datapoint |
xively | 0:82702e998d3f | 16 | , csv_encode_datapoint_in_place |
xively | 0:82702e998d3f | 17 | , csv_encode_create_datastream |
xively | 0:82702e998d3f | 18 | , csv_decode_feed |
xively | 0:82702e998d3f | 19 | , csv_decode_datapoint |
xively | 0:82702e998d3f | 20 | }; |
xively | 0:82702e998d3f | 21 | |
xively | 0:82702e998d3f | 22 | return &__csv_data_layer; |
xively | 0:82702e998d3f | 23 | } |