Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers xi_globals.h Source File

xi_globals.h

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    xi_globals.h
00006  * \author  Olgierd Humenczuk
00007  * \brief   Global run-time settings used by the library
00008  */
00009 
00010 #ifndef __XI_GLOBALS_H__
00011 #define __XI_GLOBALS_H__
00012 
00013 
00014 #include <stdint.h>
00015 
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019 
00020 /**
00021  * \brief  Global run-time settings structure
00022  */
00023 typedef struct
00024 {
00025     uint32_t network_timeout; //!< the network timeout (default: 1500 milliseconds)
00026 } xi_globals_t;
00027 
00028 extern xi_globals_t xi_globals; //!< global instance of `xi_globals_t`
00029 
00030 #ifdef __cplusplus
00031 }
00032 #endif
00033 
00034 #endif // __XI_GLOBALS_H__