Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers csv_data_layer.c Source File

csv_data_layer.c

Go to the documentation of this file.
00001 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
00002 // This is part of Xively C library, it is under the BSD 3-Clause license.
00003 
00004 /**
00005  * \file    csv_data_layer.c
00006  * \author  Olgierd Humenczuk
00007  * \brief     Implements CSV _data layer_ abstration interface [see csv_data_layer.h and data_layer.h]
00008  */
00009 
00010 #include "csv_data_layer.h"
00011 
00012 const data_layer_t* get_csv_data_layer()
00013 {
00014     static const data_layer_t __csv_data_layer = {
00015           csv_encode_datapoint
00016         , csv_encode_datapoint_in_place
00017         , csv_encode_create_datastream
00018         , csv_decode_feed
00019         , csv_decode_datapoint
00020     };
00021 
00022     return &__csv_data_layer;
00023 }