test
Fork of mbed-libxively-6eca970 by
src/libxively/http_transport_layer.h@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 http_transport_layer.h |
xively | 0:82702e998d3f | 6 | * \author Olgierd Humenczuk |
xively | 0:82702e998d3f | 7 | * \brief Implements HTTP _transport layer_ encoders and decoders specific to Xively REST/HTTP API |
xively | 0:82702e998d3f | 8 | */ |
xively | 0:82702e998d3f | 9 | |
xively | 0:82702e998d3f | 10 | #ifndef __HTTP_TRANSPORT_LAYER_H__ |
xively | 0:82702e998d3f | 11 | #define __HTTP_TRANSPORT_LAYER_H__ |
xively | 0:82702e998d3f | 12 | |
xively | 0:82702e998d3f | 13 | #include "xively.h" |
xively | 0:82702e998d3f | 14 | #include "data_layer.h" |
xively | 0:82702e998d3f | 15 | |
xively | 0:82702e998d3f | 16 | #ifdef __cplusplus |
xively | 0:82702e998d3f | 17 | extern "C" { |
xively | 0:82702e998d3f | 18 | #endif |
xively | 0:82702e998d3f | 19 | |
xively | 0:82702e998d3f | 20 | const char* http_encode_create_datastream( |
xively | 0:82702e998d3f | 21 | const data_layer_t* |
xively | 0:82702e998d3f | 22 | , const char* x_api_key |
xively | 0:82702e998d3f | 23 | , int32_t feed_id |
xively | 0:82702e998d3f | 24 | , const char *datastream_id |
xively | 0:82702e998d3f | 25 | , const xi_datapoint_t* value ); |
xively | 0:82702e998d3f | 26 | |
xively | 0:82702e998d3f | 27 | const char* http_encode_update_datastream( |
xively | 0:82702e998d3f | 28 | const data_layer_t* |
xively | 0:82702e998d3f | 29 | , const char* x_api_key |
xively | 0:82702e998d3f | 30 | , int32_t feed_id |
xively | 0:82702e998d3f | 31 | , const char *datastream_id |
xively | 0:82702e998d3f | 32 | , const xi_datapoint_t* value ); |
xively | 0:82702e998d3f | 33 | |
xively | 0:82702e998d3f | 34 | const char* http_encode_get_datastream( |
xively | 0:82702e998d3f | 35 | const data_layer_t* |
xively | 0:82702e998d3f | 36 | , const char* x_api_key |
xively | 0:82702e998d3f | 37 | , int32_t feed_id |
xively | 0:82702e998d3f | 38 | , const char *datastream_id ); |
xively | 0:82702e998d3f | 39 | |
xively | 0:82702e998d3f | 40 | const char* http_encode_delete_datastream( |
xively | 0:82702e998d3f | 41 | const data_layer_t* |
xively | 0:82702e998d3f | 42 | , const char* x_api_key |
xively | 0:82702e998d3f | 43 | , int32_t feed_id |
xively | 0:82702e998d3f | 44 | , const char *datastream_id ); |
xively | 0:82702e998d3f | 45 | |
xively | 0:82702e998d3f | 46 | const char* http_encode_delete_datapoint( |
xively | 0:82702e998d3f | 47 | const data_layer_t* |
xively | 0:82702e998d3f | 48 | , const char* x_api_key |
xively | 0:82702e998d3f | 49 | , int32_t feed_id |
xively | 0:82702e998d3f | 50 | , const char *datastream_id |
xively | 0:82702e998d3f | 51 | , const xi_datapoint_t* o ); |
xively | 0:82702e998d3f | 52 | |
xively | 0:82702e998d3f | 53 | const char* http_encode_update_feed( |
xively | 0:82702e998d3f | 54 | const data_layer_t* |
xively | 0:82702e998d3f | 55 | , const char* x_api_key |
xively | 0:82702e998d3f | 56 | , const xi_feed_t* feed ); |
xively | 0:82702e998d3f | 57 | |
xively | 0:82702e998d3f | 58 | const char* http_encode_get_feed( |
xively | 0:82702e998d3f | 59 | const data_layer_t* |
xively | 0:82702e998d3f | 60 | , const char* x_api_key |
xively | 0:82702e998d3f | 61 | , const xi_feed_t* feed ); |
xively | 0:82702e998d3f | 62 | |
xively | 0:82702e998d3f | 63 | const char* http_encode_datapoint_delete_range( |
xively | 0:82702e998d3f | 64 | const data_layer_t* |
xively | 0:82702e998d3f | 65 | , const char* x_api_key |
xively | 0:82702e998d3f | 66 | , int feed_id |
xively | 0:82702e998d3f | 67 | , const char* datastream_id |
xively | 0:82702e998d3f | 68 | , const xi_timestamp_t* start |
xively | 0:82702e998d3f | 69 | , const xi_timestamp_t* end ); |
xively | 0:82702e998d3f | 70 | |
xively | 0:82702e998d3f | 71 | const xi_response_t* http_decode_reply( |
xively | 0:82702e998d3f | 72 | const data_layer_t* |
xively | 0:82702e998d3f | 73 | , const char* data ); |
xively | 0:82702e998d3f | 74 | |
xively | 0:82702e998d3f | 75 | #ifdef __cplusplus |
xively | 0:82702e998d3f | 76 | } |
xively | 0:82702e998d3f | 77 | #endif |
xively | 0:82702e998d3f | 78 | |
xively | 0:82702e998d3f | 79 | #endif // __HTTP_TRANSPORT_LAYER_H__ |