test
Fork of mbed-libxively-6eca970 by
src/libxively/xi_consts.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 xi_consts.h |
xively | 0:82702e998d3f | 6 | * \author Olgierd Humenczuk |
xively | 0:82702e998d3f | 7 | * \brief Constants that user may wish to override based on their needs |
xively | 0:82702e998d3f | 8 | * |
xively | 0:82702e998d3f | 9 | * \warning The meaning of each of these constants below is undocumented, |
xively | 0:82702e998d3f | 10 | * so the user actually goes to read the source code and figure |
xively | 0:82702e998d3f | 11 | * out what exactly they are doing. |
xively | 0:82702e998d3f | 12 | */ |
xively | 0:82702e998d3f | 13 | |
xively | 0:82702e998d3f | 14 | #ifndef __XI_CONSTST_H__ |
xively | 0:82702e998d3f | 15 | #define __XI_CONSTST_H__ |
xively | 0:82702e998d3f | 16 | |
xively | 0:82702e998d3f | 17 | #ifndef XI_HTTP_MAX_HEADERS |
xively | 0:82702e998d3f | 18 | #define XI_HTTP_MAX_HEADERS 16 |
xively | 0:82702e998d3f | 19 | #endif |
xively | 0:82702e998d3f | 20 | |
xively | 0:82702e998d3f | 21 | #ifndef XI_HTTP_STATUS_STRING_SIZE |
xively | 0:82702e998d3f | 22 | #define XI_HTTP_STATUS_STRING_SIZE 32 |
xively | 0:82702e998d3f | 23 | #endif |
xively | 0:82702e998d3f | 24 | |
xively | 0:82702e998d3f | 25 | #ifndef XI_HTTP_HEADER_NAME_MAX_SIZE |
xively | 0:82702e998d3f | 26 | #define XI_HTTP_HEADER_NAME_MAX_SIZE 64 |
xively | 0:82702e998d3f | 27 | #endif |
xively | 0:82702e998d3f | 28 | |
xively | 0:82702e998d3f | 29 | #ifndef XI_HTTP_HEADER_VALUE_MAX_SIZE |
xively | 0:82702e998d3f | 30 | #define XI_HTTP_HEADER_VALUE_MAX_SIZE 64 |
xively | 0:82702e998d3f | 31 | #endif |
xively | 0:82702e998d3f | 32 | |
xively | 0:82702e998d3f | 33 | #ifndef XI_HTTP_MAX_CONTENT_SIZE |
xively | 0:82702e998d3f | 34 | #define XI_HTTP_MAX_CONTENT_SIZE 512 |
xively | 0:82702e998d3f | 35 | #endif |
xively | 0:82702e998d3f | 36 | |
xively | 0:82702e998d3f | 37 | #ifndef XI_MAX_DATASTREAMS |
xively | 0:82702e998d3f | 38 | #define XI_MAX_DATASTREAMS 16 |
xively | 0:82702e998d3f | 39 | #endif |
xively | 0:82702e998d3f | 40 | |
xively | 0:82702e998d3f | 41 | #ifndef XI_MAX_DATAPOINTS |
xively | 0:82702e998d3f | 42 | #define XI_MAX_DATAPOINTS 16 |
xively | 0:82702e998d3f | 43 | #endif |
xively | 0:82702e998d3f | 44 | |
xively | 0:82702e998d3f | 45 | #ifndef XI_MAX_DATASTREAM_NAME |
xively | 0:82702e998d3f | 46 | #define XI_MAX_DATASTREAM_NAME 16 |
xively | 0:82702e998d3f | 47 | #endif |
xively | 0:82702e998d3f | 48 | |
xively | 0:82702e998d3f | 49 | #ifndef XI_VALUE_STRING_MAX_SIZE |
xively | 0:82702e998d3f | 50 | #define XI_VALUE_STRING_MAX_SIZE 32 |
xively | 0:82702e998d3f | 51 | #endif |
xively | 0:82702e998d3f | 52 | |
xively | 0:82702e998d3f | 53 | #ifndef XI_PRINTF_BUFFER_SIZE |
xively | 0:82702e998d3f | 54 | #define XI_PRINTF_BUFFER_SIZE 512 |
xively | 0:82702e998d3f | 55 | #endif |
xively | 0:82702e998d3f | 56 | |
xively | 0:82702e998d3f | 57 | #ifndef XI_QUERY_BUFFER_SIZE |
xively | 0:82702e998d3f | 58 | #define XI_QUERY_BUFFER_SIZE 512 |
xively | 0:82702e998d3f | 59 | #endif |
xively | 0:82702e998d3f | 60 | |
xively | 0:82702e998d3f | 61 | #ifndef XI_ID_BUFFER_SIZE |
xively | 0:82702e998d3f | 62 | #define XI_ID_BUFFER_SIZE 256 |
xively | 0:82702e998d3f | 63 | #endif |
xively | 0:82702e998d3f | 64 | |
xively | 0:82702e998d3f | 65 | #ifndef XI_CONTENT_BUFFER_SIZE |
xively | 0:82702e998d3f | 66 | #define XI_CONTENT_BUFFER_SIZE 256 |
xively | 0:82702e998d3f | 67 | #endif |
xively | 0:82702e998d3f | 68 | |
xively | 0:82702e998d3f | 69 | #ifndef XI_CSV_BUFFER_SIZE |
xively | 0:82702e998d3f | 70 | #define XI_CSV_BUFFER_SIZE 128 |
xively | 0:82702e998d3f | 71 | #endif |
xively | 0:82702e998d3f | 72 | |
xively | 0:82702e998d3f | 73 | #ifndef XI_HOST |
xively | 0:82702e998d3f | 74 | #define XI_HOST "api.xively.com" |
xively | 0:82702e998d3f | 75 | #endif |
xively | 0:82702e998d3f | 76 | |
xively | 0:82702e998d3f | 77 | #ifndef XI_PORT |
xively | 0:82702e998d3f | 78 | #define XI_PORT 80 |
xively | 0:82702e998d3f | 79 | #endif |
xively | 0:82702e998d3f | 80 | |
xively | 0:82702e998d3f | 81 | #endif // __XI_CONSTST_H__ |
xively | 0:82702e998d3f | 82 | #define XI_USER_AGENT "libxively-mbed/0.1.x-6eca970" |