oauth.h   oauth.h 
/** /**
* @brief OAuth.net implementation in POSIX-C. * @brief OAuth.net implementation in POSIX-C.
* @file oauth.h * @file oauth.h
* @author Robin Gareus <robin@gareus.org> * @author Robin Gareus <robin@gareus.org>
* *
* Copyright 2007-2010 Robin Gareus <robin@gareus.org> * Copyright 2007-2011 Robin Gareus <robin@gareus.org>
* *
* Permission is hereby granted, free of charge, to any person obtaining a copy * Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal * of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri ghts * in the Software without restriction, including without limitation the ri ghts
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sel l * to use, copy, modify, merge, publish, distribute, sublicense, and/or sel l
* copies of the Software, and to permit persons to whom the Software is * copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions: * furnished to do so, subject to the following conditions:
* *
* The above copyright notice and this permission notice shall be included in * The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software. * all copies or substantial portions of the Software.
skipping to change at line 32 skipping to change at line 32
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS I N * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS I N
* THE SOFTWARE. * THE SOFTWARE.
* *
*/ */
#ifndef _OAUTH_H #ifndef _OAUTH_H
#define _OAUTH_H 1 #define _OAUTH_H 1
#ifndef DOXYGEN_IGNORE #ifndef DOXYGEN_IGNORE
// liboauth version // liboauth version
#define LIBOAUTH_VERSION "0.9.4" #define LIBOAUTH_VERSION "0.9.5"
#define LIBOAUTH_VERSION_MAJOR 0 #define LIBOAUTH_VERSION_MAJOR 0
#define LIBOAUTH_VERSION_MINOR 9 #define LIBOAUTH_VERSION_MINOR 9
#define LIBOAUTH_VERSION_MICRO 4 #define LIBOAUTH_VERSION_MICRO 5
//interface revision number //interface revision number
//http://www.gnu.org/software/libtool/manual/html_node/Updating-version-inf o.html //http://www.gnu.org/software/libtool/manual/html_node/Updating-version-inf o.html
#define LIBOAUTH_CUR 8 #define LIBOAUTH_CUR 8
#define LIBOAUTH_REV 1 #define LIBOAUTH_REV 2
#define LIBOAUTH_AGE 8 #define LIBOAUTH_AGE 8
#endif #endif
#ifdef __GNUC__ #ifdef __GNUC__
# define OA_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y) # define OA_GCC_VERSION_AT_LEAST(x,y) (__GNUC__ > x || __GNUC__ == x && __GNUC_MINOR__ >= y)
#else #else
# define OA_GCC_VERSION_AT_LEAST(x,y) 0 # define OA_GCC_VERSION_AT_LEAST(x,y) 0
#endif #endif
#ifndef attribute_deprecated #ifndef attribute_deprecated
#if OA_GCC_VERSION_AT_LEAST(3,1) #if OA_GCC_VERSION_AT_LEAST(3,1)
# define attribute_deprecated __attribute__((deprecated)) # define attribute_deprecated __attribute__((deprecated))
#else #else
# define attribute_deprecated # define attribute_deprecated
#endif #endif
#endif #endif
#ifdef __cplusplus
extern "C" {
#endif
/** \enum OAuthMethod /** \enum OAuthMethod
* signature method to used for signing the request. * signature method to used for signing the request.
*/ */
typedef enum { typedef enum {
OA_HMAC=0, ///< use HMAC-SHA1 request signing method OA_HMAC=0, ///< use HMAC-SHA1 request signing method
OA_RSA, ///< use RSA signature OA_RSA, ///< use RSA signature
OA_PLAINTEXT ///< use plain text signature (for testing only) OA_PLAINTEXT ///< use plain text signature (for testing only)
} OAuthMethod; } OAuthMethod;
/** /**
skipping to change at line 749 skipping to change at line 753
* @return returned HTTP reply or NULL on error * @return returned HTTP reply or NULL on error
*/ */
char *oauth_send_data_with_callback (const char *u, char *oauth_send_data_with_callback (const char *u,
const char *data, const char *data,
size_t len, size_t len,
const char *customheader, const char *customheader,
void (*callback)(void*,int,size_t ,size_t), void (*callback)(void*,int,size_t ,size_t),
void *callback_data, void *callback_data,
const char *httpMethod); const char *httpMethod);
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif #endif
/* vi:set ts=8 sts=2 sw=2: */ /* vi:set ts=8 sts=2 sw=2: */
 End of changes. 6 change blocks. 
4 lines changed or deleted 12 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/