test
Fork of mbed-libxively-6eca970 by
Diff: src/libxively/xi_globals.h
- Revision:
- 0:82702e998d3f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libxively/xi_globals.h Wed Jun 26 10:40:43 2013 +0000 @@ -0,0 +1,34 @@ +// Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved. +// This is part of Xively C library, it is under the BSD 3-Clause license. + +/** + * \file xi_globals.h + * \author Olgierd Humenczuk + * \brief Global run-time settings used by the library + */ + +#ifndef __XI_GLOBALS_H__ +#define __XI_GLOBALS_H__ + + +#include <stdint.h> + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * \brief Global run-time settings structure + */ +typedef struct +{ + uint32_t network_timeout; //!< the network timeout (default: 1500 milliseconds) +} xi_globals_t; + +extern xi_globals_t xi_globals; //!< global instance of `xi_globals_t` + +#ifdef __cplusplus +} +#endif + +#endif // __XI_GLOBALS_H__ \ No newline at end of file