flickcurl.h   flickcurl.h 
/* -*- Mode: c; c-basic-offset: 2 -*- /* -*- Mode: c; c-basic-offset: 2 -*-
* *
* flickcurl.h - Flickcurl API * flickcurl.h - Flickcurl API
* *
* Copyright (C) 2007-2010, David Beckett http://www.dajobe.org/ * Copyright (C) 2007-2012, David Beckett http://www.dajobe.org/
* *
* This file is licensed under the following three licenses as alternatives : * This file is licensed under the following three licenses as alternatives :
* 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version
* 2. GNU General Public License (GPL) V2 or any newer version * 2. GNU General Public License (GPL) V2 or any newer version
* 3. Apache License, V2.0 or any newer version * 3. Apache License, V2.0 or any newer version
* *
* You may not use this file except in compliance with at least one of * You may not use this file except in compliance with at least one of
* the above three licenses. * the above three licenses.
* *
* See LICENSE.html or LICENSE.txt at the top of this package for the * See LICENSE.html or LICENSE.txt at the top of this package for the
skipping to change at line 1352 skipping to change at line 1352
* flickcurl_size: * flickcurl_size:
* @label: label * @label: label
* @width: width in pixels * @width: width in pixels
* @height: height in pixels * @height: height in pixels
* @source: raw image source URL * @source: raw image source URL
* @url: url of photo page * @url: url of photo page
* @media: 'photo' or 'video' * @media: 'photo' or 'video'
* *
* A photo at a size. * A photo at a size.
* *
* Supported sizes and their letter suffixes used in the @source and
* the @url fields are as follows:
*
* s: small square 75x75.
* q: large square 150x150 (2011-03-12 or later).
* t: thumbnail, 100 on longest side.
* m: small, 240 on longest side.
* n: small, 320 on longest side (2011-03-12 or later).
* -: medium, 500 on longest side.
* z: medium 640, 640 on longest side.
* b: large, 1024 on longest side*.
* o: original image, either a jpg, gif or png, depending on source format.
*
* The 'q' and 'n' sizes were announced 2011-03-12 in
* http://tech.groups.yahoo.com/group/yws-flickr/message/7483
*
*/ */
typedef struct { typedef struct {
char *label; char *label;
int width; int width;
int height; int height;
char *source; char *source;
char *url; char *url;
char* media; char* media;
} flickcurl_size; } flickcurl_size;
skipping to change at line 1778 skipping to change at line 1794
FLICKCURL_API FLICKCURL_API
char* flickcurl_auth_checkToken(flickcurl* fc, const char* token); char* flickcurl_auth_checkToken(flickcurl* fc, const char* token);
FLICKCURL_API FLICKCURL_API
char* flickcurl_auth_getFrob(flickcurl* fc); char* flickcurl_auth_getFrob(flickcurl* fc);
FLICKCURL_API FLICKCURL_API
char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob); char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob);
FLICKCURL_API FLICKCURL_API
char* flickcurl_auth_getToken(flickcurl* fc, const char* frob); char* flickcurl_auth_getToken(flickcurl* fc, const char* frob);
FLICKCURL_API FLICKCURL_API
int flickcurl_auth_oauth_getAccessToken(flickcurl* fc); int flickcurl_auth_oauth_getAccessToken(flickcurl* fc);
FLICKCURL_API
const char* flickcurl_get_oauth_token(flickcurl *fc);
FLICKCURL_API
void flickcurl_set_oauth_token(flickcurl *fc, const char* token);
FLICKCURL_API
const char* flickcurl_get_oauth_token_secret(flickcurl* fc);
FLICKCURL_API
void flickcurl_set_oauth_token_secret(flickcurl* fc, const char *secret);
FLICKCURL_API
const char* flickcurl_get_oauth_client_key(flickcurl *fc);
FLICKCURL_API
const char* flickcurl_get_oauth_client_secret(flickcurl *fc);
FLICKCURL_API
void flickcurl_set_oauth_client_key(flickcurl *fc, const char* client_key);
FLICKCURL_API
void flickcurl_set_oauth_client_secret(flickcurl *fc, const char* client_se
cret);
FLICKCURL_API
const char* flickcurl_get_oauth_request_token(flickcurl* fc);
FLICKCURL_API
const char* flickcurl_get_oauth_request_token_secret(flickcurl* fc);
FLICKCURL_API
void flickcurl_set_oauth_request_token(flickcurl *fc, const char* token);
FLICKCURL_API
void flickcurl_set_oauth_request_token_secret(flickcurl *fc, const char* se
cret);
/* OAuth flow requests */
FLICKCURL_API
int flickcurl_oauth_create_request_token(flickcurl* fc, const char* callbac
k);
FLICKCURL_API
char* flickcurl_oauth_get_authorize_uri(flickcurl* fc);
FLICKCURL_API
int flickcurl_oauth_create_access_token(flickcurl* fc, const char* verifier
);
/* flickr.blogs */ /* flickr.blogs */
FLICKCURL_API FLICKCURL_API
flickcurl_blog** flickcurl_blogs_getList(flickcurl* fc); flickcurl_blog** flickcurl_blogs_getList(flickcurl* fc);
FLICKCURL_API FLICKCURL_API
int flickcurl_blogs_postPhoto(flickcurl* fc, const char* blog_id, const cha r* photo_id, const char* title, const char* description, const char* blog_p assword); int flickcurl_blogs_postPhoto(flickcurl* fc, const char* blog_id, const cha r* photo_id, const char* title, const char* description, const char* blog_p assword);
FLICKCURL_API FLICKCURL_API
void flickcurl_free_blogs(flickcurl_blog **blogs_object); void flickcurl_free_blogs(flickcurl_blog **blogs_object);
FLICKCURL_API FLICKCURL_API
flickcurl_blog_service** flickcurl_blogs_getServices(flickcurl* fc); flickcurl_blog_service** flickcurl_blogs_getServices(flickcurl* fc);
 End of changes. 3 change blocks. 
1 lines changed or deleted 53 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/