Xively C library

Dependents:   xively-jumpstart-demo

This is Xively C library, the code lives on GitHub.

See our example program and the tutorial, documentation can bee found here.

Committer:
xively
Date:
Mon May 13 19:28:22 2013 +0000
Revision:
0:53753690a8bf
libxively v0.1.1-rc0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xively 0:53753690a8bf 1 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
xively 0:53753690a8bf 2 // This is part of Xively C library, it is under the BSD 3-Clause license.
xively 0:53753690a8bf 3
xively 0:53753690a8bf 4 /**
xively 0:53753690a8bf 5 * \file xi_printf.h
xively 0:53753690a8bf 6 * \author Olgierd Humenczuk
xively 0:53753690a8bf 7 * \brief Our custom `printf()` hook
xively 0:53753690a8bf 8 *
xively 0:53753690a8bf 9 * This is needed on embedded devices, as there is no way to redirect
xively 0:53753690a8bf 10 * the output neither it has any logging facilities out of the box.
xively 0:53753690a8bf 11 * We currently use a function pointer (`user_print_t`) and and the
xively 0:53753690a8bf 12 * user can assign to an external variable (`USER_PRINTF`) to call
xively 0:53753690a8bf 13 * whatever device platform may have available.
xively 0:53753690a8bf 14 */
xively 0:53753690a8bf 15
xively 0:53753690a8bf 16 #ifndef __XI_PRINTF_H__
xively 0:53753690a8bf 17 #define __XI_PRINTF_H__
xively 0:53753690a8bf 18
xively 0:53753690a8bf 19 #ifdef __cplusplus
xively 0:53753690a8bf 20 extern "C" {
xively 0:53753690a8bf 21 #endif
xively 0:53753690a8bf 22
xively 0:53753690a8bf 23 typedef void ( *user_print_t )( const char* );
xively 0:53753690a8bf 24
xively 0:53753690a8bf 25 extern user_print_t USER_PRINT;
xively 0:53753690a8bf 26
xively 0:53753690a8bf 27 int xi_printf( const char *fmt, ... );
xively 0:53753690a8bf 28
xively 0:53753690a8bf 29 #ifdef __cplusplus
xively 0:53753690a8bf 30 }
xively 0:53753690a8bf 31 #endif
xively 0:53753690a8bf 32
xively 0:53753690a8bf 33 #endif //__XI_PRINTF_H__