flickcurl.h   flickcurl.h 
skipping to change at line 31 skipping to change at line 31
#ifndef FLICKCURL_H #ifndef FLICKCURL_H
#define FLICKCURL_H #define FLICKCURL_H
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* needed for xmlDocPtr */ /* needed for xmlDocPtr */
#include <libxml/tree.h> #include <libxml/tree.h>
/**
* FLICKCURL_API:
*
* Macro for wrapping API function call declarations.
*
*/
#ifndef FLICKCURL_API
# ifdef WIN32
# ifdef __GNUC__
# undef _declspec
# define _declspec(x) __declspec(x)
# endif
# ifdef FLICKCURL_STATIC
# define FLICKCURL_API
# else
# ifdef FLICKCURL_INTERNAL
# define FLICKCURL_API _declspec(dllexport)
# else
# define FLICKCURL_API _declspec(dllimport)
# endif
# endif
# else
# define FLICKCURL_API
# endif
#endif
/* Use gcc 3.1+ feature to allow marking of deprecated API calls. /* Use gcc 3.1+ feature to allow marking of deprecated API calls.
* This gives a warning during compiling. * This gives a warning during compiling.
*/ */
#if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3 #if ( __GNUC__ == 3 && __GNUC_MINOR__ > 0 ) || __GNUC__ > 3
#ifdef __APPLE_CC__ #ifdef __APPLE_CC__
/* OSX gcc cpp-precomp is broken */ /* OSX gcc cpp-precomp is broken */
#define FLICKCURL_DEPRECATED #define FLICKCURL_DEPRECATED
#else #else
#define FLICKCURL_DEPRECATED __attribute__((deprecated)) #define FLICKCURL_DEPRECATED __attribute__((deprecated))
#endif #endif
skipping to change at line 171 skipping to change at line 197
PHOTO_FIELD_location_locality, PHOTO_FIELD_location_locality,
PHOTO_FIELD_location_county, PHOTO_FIELD_location_county,
PHOTO_FIELD_location_region, PHOTO_FIELD_location_region,
PHOTO_FIELD_location_country, PHOTO_FIELD_location_country,
PHOTO_FIELD_location_placeid, PHOTO_FIELD_location_placeid,
PHOTO_FIELD_neighborhood_placeid, PHOTO_FIELD_neighborhood_placeid,
PHOTO_FIELD_locality_placeid, PHOTO_FIELD_locality_placeid,
PHOTO_FIELD_county_placeid, PHOTO_FIELD_county_placeid,
PHOTO_FIELD_region_placeid, PHOTO_FIELD_region_placeid,
PHOTO_FIELD_country_placeid, PHOTO_FIELD_country_placeid,
PHOTO_FIELD_location_woeid,
PHOTO_FIELD_neighborhood_woeid,
PHOTO_FIELD_locality_woeid,
PHOTO_FIELD_county_woeid,
PHOTO_FIELD_region_woeid,
PHOTO_FIELD_country_woeid,
PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded, PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded,
PHOTO_FIELD_LAST = PHOTO_FIELD_country_placeid, PHOTO_FIELD_LAST = PHOTO_FIELD_country_woeid,
} flickcurl_photo_field_type; } flickcurl_photo_field_type;
/** /**
* @flickcurl: * @flickcurl:
* *
* Flickcurl session object created by flickcurl_new() and destroyed by fli ckcurl_free() * Flickcurl session object created by flickcurl_new() and destroyed by fli ckcurl_free()
*/ */
typedef struct flickcurl_s flickcurl; typedef struct flickcurl_s flickcurl;
/* Forward structure references */ /* Forward structure references */
skipping to change at line 398 skipping to change at line 430
FLICKCURL_PLACE_LAST = FLICKCURL_PLACE_COUNTRY FLICKCURL_PLACE_LAST = FLICKCURL_PLACE_COUNTRY
} flickcurl_place_type; } flickcurl_place_type;
/** /**
* flickcurl_place: * flickcurl_place:
* @names: Array of place names * @names: Array of place names
* @ids: Array of place IDs * @ids: Array of place IDs
* @urls: Array of place urls. * @urls: Array of place urls.
* @type: Location type of index 0 (the location) usually * @type: Location type of index 0 (the location) usually
* FLICKCURL_PLACE_LOCATION but may be wider * FLICKCURL_PLACE_LOCATION but may be wider
* @woe_ids: Array of WOE IDs
* *
* A Place. * A Place.
* *
* Index 0 in the array is the location itself. flickcurl_get_place_type_la bel() * Index 0 in the array is the location itself. flickcurl_get_place_type_la bel()
* can give labels for the array indexes of type #flickcurl_place_type. * can give labels for the array indexes of type #flickcurl_place_type.
* *
*/ */
typedef struct typedef struct
{ {
char* names[FLICKCURL_PLACE_LAST+1]; char* names[FLICKCURL_PLACE_LAST+1];
char* ids[FLICKCURL_PLACE_LAST+1]; char* ids[FLICKCURL_PLACE_LAST+1];
char* urls[FLICKCURL_PLACE_LAST+1]; char* urls[FLICKCURL_PLACE_LAST+1];
flickcurl_place_type type; flickcurl_place_type type;
char* woe_ids[FLICKCURL_PLACE_LAST+1];
} flickcurl_place; } flickcurl_place;
/** /**
* flickcurl_tag: * flickcurl_tag:
* @photo: Associated photo object if any * @photo: Associated photo object if any
* @id: tag identifier * @id: tag identifier
* @author: author (may be NULL) * @author: author (may be NULL)
* @authorname: author real name (may be NULL) * @authorname: author real name (may be NULL)
* @raw: raw tag as user typed it (may be NULL, but if so @cooked must be n ot NULL) * @raw: raw tag as user typed it (may be NULL, but if so @cooked must be n ot NULL)
* @cooked: cooked tag (may be NULL, but if so @raw must not be NULL) * @cooked: cooked tag (may be NULL, but if so @raw must not be NULL)
skipping to change at line 940 skipping to change at line 974
/** /**
* flickcurl_tag_handler * flickcurl_tag_handler
* @user_data: user data pointer * @user_data: user data pointer
* @tag: tag * @tag: tag
* *
* Flickcurl Tag handler callback. * Flickcurl Tag handler callback.
*/ */
typedef void (*flickcurl_tag_handler)(void *user_data, flickcurl_tag* tag); typedef void (*flickcurl_tag_handler)(void *user_data, flickcurl_tag* tag);
/* library constants */ /* library constants */
FLICKCURL_API
extern const char* const flickcurl_short_copyright_string; extern const char* const flickcurl_short_copyright_string;
FLICKCURL_API
extern const char* const flickcurl_copyright_string; extern const char* const flickcurl_copyright_string;
FLICKCURL_API
extern const char* const flickcurl_license_string; extern const char* const flickcurl_license_string;
FLICKCURL_API
extern const char* const flickcurl_home_url_string; extern const char* const flickcurl_home_url_string;
FLICKCURL_API
extern const char* const flickcurl_version_string; extern const char* const flickcurl_version_string;
/* library init - call once before creating anything */ /* library init - call once before creating anything */
FLICKCURL_API
int flickcurl_init(void); int flickcurl_init(void);
/* library cleanup - call once before exit */ /* library cleanup - call once before exit */
FLICKCURL_API
void flickcurl_finish(void); void flickcurl_finish(void);
/* flickcurl* object constructor */ /* flickcurl* object constructor */
FLICKCURL_API
flickcurl* flickcurl_new(void); flickcurl* flickcurl_new(void);
/* flickcurl* object destructor */ /* flickcurl* object destructor */
FLICKCURL_API
void flickcurl_free(flickcurl *fc); void flickcurl_free(flickcurl *fc);
/* flickcurl* object set methods */ /* flickcurl* object set methods */
FLICKCURL_API
void flickcurl_set_api_key(flickcurl* fc, const char *api_key); void flickcurl_set_api_key(flickcurl* fc, const char *api_key);
FLICKCURL_API
void flickcurl_set_auth_token(flickcurl *fc, const char* auth_token); void flickcurl_set_auth_token(flickcurl *fc, const char* auth_token);
FLICKCURL_API
void flickcurl_set_data(flickcurl *fc, void* data, size_t data_length); void flickcurl_set_data(flickcurl *fc, void* data, size_t data_length);
FLICKCURL_API
void flickcurl_set_error_handler(flickcurl* fc, flickcurl_message_handler e rror_handler, void *error_data); void flickcurl_set_error_handler(flickcurl* fc, flickcurl_message_handler e rror_handler, void *error_data);
FLICKCURL_API
void flickcurl_set_http_accept(flickcurl* fc, const char *value); void flickcurl_set_http_accept(flickcurl* fc, const char *value);
FLICKCURL_API
void flickcurl_set_proxy(flickcurl* fc, const char *proxy); void flickcurl_set_proxy(flickcurl* fc, const char *proxy);
FLICKCURL_API
void flickcurl_set_request_delay(flickcurl *fc, long delay_msec); void flickcurl_set_request_delay(flickcurl *fc, long delay_msec);
FLICKCURL_API
void flickcurl_set_shared_secret(flickcurl* fc, const char *secret); void flickcurl_set_shared_secret(flickcurl* fc, const char *secret);
FLICKCURL_API
void flickcurl_set_sign(flickcurl *fc); void flickcurl_set_sign(flickcurl *fc);
FLICKCURL_API
void flickcurl_set_tag_handler(flickcurl* fc, flickcurl_tag_handler tag_ha ndler, void *tag_data); void flickcurl_set_tag_handler(flickcurl* fc, flickcurl_tag_handler tag_ha ndler, void *tag_data);
FLICKCURL_API
void flickcurl_set_user_agent(flickcurl* fc, const char *user_agent); void flickcurl_set_user_agent(flickcurl* fc, const char *user_agent);
FLICKCURL_API
void flickcurl_set_write(flickcurl *fc, int is_write); void flickcurl_set_write(flickcurl *fc, int is_write);
FLICKCURL_API
void flickcurl_set_xml_data(flickcurl *fc, xmlDocPtr doc); void flickcurl_set_xml_data(flickcurl *fc, xmlDocPtr doc);
/* flickcurl* object set methods */ /* flickcurl* object set methods */
FLICKCURL_API
const char* flickcurl_get_api_key(flickcurl *fc); const char* flickcurl_get_api_key(flickcurl *fc);
FLICKCURL_API
const char* flickcurl_get_shared_secret(flickcurl *fc); const char* flickcurl_get_shared_secret(flickcurl *fc);
FLICKCURL_API
const char* flickcurl_get_auth_token(flickcurl *fc); const char* flickcurl_get_auth_token(flickcurl *fc);
/* other flickcurl class destructors */ /* other flickcurl class destructors */
FLICKCURL_API
void flickcurl_free_tag(flickcurl_tag *t); void flickcurl_free_tag(flickcurl_tag *t);
FLICKCURL_API
void flickcurl_free_photo(flickcurl_photo *photo); void flickcurl_free_photo(flickcurl_photo *photo);
FLICKCURL_API
void flickcurl_free_photos(flickcurl_photo** photos); void flickcurl_free_photos(flickcurl_photo** photos);
FLICKCURL_API
void flickcurl_free_photoset(flickcurl_photoset *photoset); void flickcurl_free_photoset(flickcurl_photoset *photoset);
FLICKCURL_API
void flickcurl_free_photosets(flickcurl_photoset **photosets_object); void flickcurl_free_photosets(flickcurl_photoset **photosets_object);
/* void flickcurl_free_license(flickcurl_person *license); */ /* void flickcurl_free_license(flickcurl_person *license); */
FLICKCURL_API
void flickcurl_free_person(flickcurl_person *person); void flickcurl_free_person(flickcurl_person *person);
FLICKCURL_API
void flickcurl_free_persons(flickcurl_person** persons); void flickcurl_free_persons(flickcurl_person** persons);
FLICKCURL_API
void flickcurl_free_context(flickcurl_context *context); void flickcurl_free_context(flickcurl_context *context);
FLICKCURL_API
void flickcurl_free_contexts(flickcurl_context** contexts); void flickcurl_free_contexts(flickcurl_context** contexts);
FLICKCURL_API
void flickcurl_free_perms(flickcurl_perms *perms); void flickcurl_free_perms(flickcurl_perms *perms);
FLICKCURL_API
void flickcurl_free_location(flickcurl_location *location); void flickcurl_free_location(flickcurl_location *location);
FLICKCURL_API
void flickcurl_free_exif(flickcurl_exif *exif); void flickcurl_free_exif(flickcurl_exif *exif);
FLICKCURL_API
void flickcurl_free_exifs(flickcurl_exif **exifs_object); void flickcurl_free_exifs(flickcurl_exif **exifs_object);
FLICKCURL_API
void flickcurl_free_ticket(flickcurl_ticket *ticket); void flickcurl_free_ticket(flickcurl_ticket *ticket);
FLICKCURL_API
void flickcurl_free_tickets(flickcurl_ticket **tickets_object); void flickcurl_free_tickets(flickcurl_ticket **tickets_object);
FLICKCURL_API
void flickcurl_free_user_upload_status(flickcurl_user_upload_status *u); void flickcurl_free_user_upload_status(flickcurl_user_upload_status *u);
FLICKCURL_API
void flickcurl_free_place(flickcurl_place* place); void flickcurl_free_place(flickcurl_place* place);
FLICKCURL_API
void flickcurl_free_places(flickcurl_place** places_object); void flickcurl_free_places(flickcurl_place** places_object);
/* utility methods */ /* utility methods */
/* get an image URL for a photo in some size */ /* get an image URL for a photo in some size */
FLICKCURL_API
char* flickcurl_photo_as_source_uri(flickcurl_photo *photo, const char c); char* flickcurl_photo_as_source_uri(flickcurl_photo *photo, const char c);
/* get labels for various field/types */ /* get labels for various field/types */
FLICKCURL_API
const char* flickcurl_get_photo_field_label(flickcurl_photo_field_type fiel d); const char* flickcurl_get_photo_field_label(flickcurl_photo_field_type fiel d);
FLICKCURL_API
const char* flickcurl_get_person_field_label(flickcurl_person_field_type fi eld); const char* flickcurl_get_person_field_label(flickcurl_person_field_type fi eld);
FLICKCURL_API
const char* flickcurl_get_field_value_type_label(flickcurl_field_value_type datatype); const char* flickcurl_get_field_value_type_label(flickcurl_field_value_type datatype);
FLICKCURL_API
const char* flickcurl_get_context_type_field_label(flickcurl_context_type t ype); const char* flickcurl_get_context_type_field_label(flickcurl_context_type t ype);
/** /**
* set_config_var_handler: * set_config_var_handler:
* @userdata: user data pointer * @userdata: user data pointer
* @key: key * @key: key
* @value: value * @value: value
* *
* Handler to get variables returned from an 'INI' style configuration file * Handler to get variables returned from an 'INI' style configuration file
*/ */
typedef void (*set_config_var_handler)(void* userdata, const char* key, con st char* value); typedef void (*set_config_var_handler)(void* userdata, const char* key, con st char* value);
FLICKCURL_API
int read_ini_config(const char* filename, const char* application, void* us er_data, set_config_var_handler handler); int read_ini_config(const char* filename, const char* application, void* us er_data, set_config_var_handler handler);
/* Flickr API calls */ /* Flickr API calls */
/* flickr.activity */ /* flickr.activity */
FLICKCURL_API
flickcurl_activity** flickcurl_activity_userComments(flickcurl* fc, int per _page, int page); flickcurl_activity** flickcurl_activity_userComments(flickcurl* fc, int per _page, int page);
FLICKCURL_API
flickcurl_activity** flickcurl_activity_userPhotos(flickcurl* fc, const cha r* timeframe, int per_page, int page); flickcurl_activity** flickcurl_activity_userPhotos(flickcurl* fc, const cha r* timeframe, int per_page, int page);
FLICKCURL_API
void flickcurl_free_activities(flickcurl_activity **activities_object); void flickcurl_free_activities(flickcurl_activity **activities_object);
/* flickr.auth */ /* flickr.auth */
FLICKCURL_API
char* flickcurl_auth_checkToken(flickcurl* fc, const char* token); char* flickcurl_auth_checkToken(flickcurl* fc, const char* token);
FLICKCURL_API
char* flickcurl_auth_getFrob(flickcurl* fc); char* flickcurl_auth_getFrob(flickcurl* fc);
FLICKCURL_API
char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob); char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob);
FLICKCURL_API
char* flickcurl_auth_getToken(flickcurl* fc, const char* frob); char* flickcurl_auth_getToken(flickcurl* fc, const char* frob);
/* flickr.blogs */ /* flickr.blogs */
FLICKCURL_API
flickcurl_blog** flickcurl_blogs_getList(flickcurl* fc); flickcurl_blog** flickcurl_blogs_getList(flickcurl* fc);
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
void flickcurl_free_blogs(flickcurl_blog **blogs_object); void flickcurl_free_blogs(flickcurl_blog **blogs_object);
/* flickr.favorites */ /* flickr.favorites */
FLICKCURL_API
int flickcurl_favorites_add(flickcurl* fc, const char* photo_id); int flickcurl_favorites_add(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_favorites_getList(flickcurl* fc, const char* us er_id, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_favorites_getList(flickcurl* fc, const char* us er_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photo** flickcurl_favorites_getPublicList(flickcurl* fc, const ch ar* user_id, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_favorites_getPublicList(flickcurl* fc, const ch ar* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
int flickcurl_favorites_remove(flickcurl* fc, const char* photo_id); int flickcurl_favorites_remove(flickcurl* fc, const char* photo_id);
/* flickr.groups */ /* flickr.groups */
FLICKCURL_API
void flickcurl_free_category(flickcurl_category *category); void flickcurl_free_category(flickcurl_category *category);
FLICKCURL_API
void flickcurl_free_categories(flickcurl_category **categories_object); void flickcurl_free_categories(flickcurl_category **categories_object);
FLICKCURL_API
flickcurl_category* flickcurl_groups_browse(flickcurl* fc, int cat_id); flickcurl_category* flickcurl_groups_browse(flickcurl* fc, int cat_id);
FLICKCURL_API
flickcurl_group* flickcurl_groups_getInfo(flickcurl* fc, const char* group_ id, const char* lang); flickcurl_group* flickcurl_groups_getInfo(flickcurl* fc, const char* group_ id, const char* lang);
FLICKCURL_API
flickcurl_group** flickcurl_groups_search(flickcurl* fc, const char* text, int per_page, int page); flickcurl_group** flickcurl_groups_search(flickcurl* fc, const char* text, int per_page, int page);
/* flickr.groups.pools */ /* flickr.groups.pools */
FLICKCURL_API
int flickcurl_groups_pools_add(flickcurl* fc, const char* photo_id, const c har* group_id); int flickcurl_groups_pools_add(flickcurl* fc, const char* photo_id, const c har* group_id);
FLICKCURL_API
flickcurl_context** flickcurl_groups_pools_getContext(flickcurl* fc, const char* photo_id, const char* group_id); flickcurl_context** flickcurl_groups_pools_getContext(flickcurl* fc, const char* photo_id, const char* group_id);
FLICKCURL_API
flickcurl_group** flickcurl_groups_pools_getGroups(flickcurl* fc, int page, int per_page); flickcurl_group** flickcurl_groups_pools_getGroups(flickcurl* fc, int page, int per_page);
FLICKCURL_API
flickcurl_photo** flickcurl_groups_pools_getPhotos(flickcurl* fc, const cha r* group_id, const char* tags, const char* user_id, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_groups_pools_getPhotos(flickcurl* fc, const cha r* group_id, const char* tags, const char* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
int flickcurl_groups_pools_remove(flickcurl* fc, const char* photo_id, cons t char* group_id); int flickcurl_groups_pools_remove(flickcurl* fc, const char* photo_id, cons t char* group_id);
FLICKCURL_API
void flickcurl_free_group(flickcurl_group *group); void flickcurl_free_group(flickcurl_group *group);
FLICKCURL_API
void flickcurl_free_groups(flickcurl_group **groups_object); void flickcurl_free_groups(flickcurl_group **groups_object);
/* flickr.interestingness */ /* flickr.interestingness */
FLICKCURL_API
flickcurl_photo** flickcurl_interestingness_getList(flickcurl* fc, const ch ar* date, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_interestingness_getList(flickcurl* fc, const ch ar* date, const char* extras, int per_page, int page);
/* flickr.photo.getSizes */ /* flickr.photo.getSizes */
FLICKCURL_API
void flickcurl_free_size(flickcurl_size *size); void flickcurl_free_size(flickcurl_size *size);
FLICKCURL_API
void flickcurl_free_sizes(flickcurl_size **sizes_object); void flickcurl_free_sizes(flickcurl_size **sizes_object);
/* flickr.people */ /* flickr.people */
FLICKCURL_API
char* flickcurl_people_findByEmail(flickcurl* fc, const char* email); char* flickcurl_people_findByEmail(flickcurl* fc, const char* email);
FLICKCURL_API
char* flickcurl_people_findByUsername(flickcurl* fc, const char* username); char* flickcurl_people_findByUsername(flickcurl* fc, const char* username);
FLICKCURL_API
flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id); flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id);
FLICKCURL_API
flickcurl_group** flickcurl_people_getPublicGroups(flickcurl* fc, const cha r* user_id); flickcurl_group** flickcurl_people_getPublicGroups(flickcurl* fc, const cha r* user_id);
FLICKCURL_API
flickcurl_photo** flickcurl_people_getPublicPhotos(flickcurl* fc, const cha r* user_id, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_people_getPublicPhotos(flickcurl* fc, const cha r* user_id, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_user_upload_status* flickcurl_people_getUploadStatus(flickcurl* f c); flickcurl_user_upload_status* flickcurl_people_getUploadStatus(flickcurl* f c);
/* flickr.photos */ /* flickr.photos */
FLICKCURL_API
int flickcurl_photos_addTags(flickcurl* fc, const char* photo_id, const cha r* tags); int flickcurl_photos_addTags(flickcurl* fc, const char* photo_id, const cha r* tags);
FLICKCURL_API
int flickcurl_photos_delete(flickcurl* fc, const char* photo_id); int flickcurl_photos_delete(flickcurl* fc, const char* photo_id);
FLICKCURL_API
flickcurl_context** flickcurl_photos_getAllContexts(flickcurl* fc, const ch ar* photo_id); flickcurl_context** flickcurl_photos_getAllContexts(flickcurl* fc, const ch ar* photo_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getContactsPhotos(flickcurl* fc, int con tact_count, int just_friends, int single_photo, int include_self, const cha r* extras); flickcurl_photo** flickcurl_photos_getContactsPhotos(flickcurl* fc, int con tact_count, int just_friends, int single_photo, int include_self, const cha r* extras);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getContactsPublicPhotos(flickcurl* fc, c onst char* user_id, int photo_count, int just_friends, int single_photo, i nt include_self, const char* extras); flickcurl_photo** flickcurl_photos_getContactsPublicPhotos(flickcurl* fc, c onst char* user_id, int photo_count, int just_friends, int single_photo, i nt include_self, const char* extras);
FLICKCURL_API
flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char* photo_id); flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char* photo_id);
FLICKCURL_API
int** flickcurl_photos_getCounts(flickcurl* fc, const char** dates_array, c onst char** taken_dates_array); int** flickcurl_photos_getCounts(flickcurl* fc, const char** dates_array, c onst char** taken_dates_array);
FLICKCURL_API
flickcurl_exif** flickcurl_photos_getExif(flickcurl* fc, const char* photo_ id, const char* secret); flickcurl_exif** flickcurl_photos_getExif(flickcurl* fc, const char* photo_ id, const char* secret);
FLICKCURL_API
flickcurl_person** flickcurl_photos_getFavorites(flickcurl* fc, const char* photo_id, int page, int per_page); flickcurl_person** flickcurl_photos_getFavorites(flickcurl* fc, const char* photo_id, int page, int per_page);
FLICKCURL_API
flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id); flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getNotInSet(flickcurl* fc, int min_uploa d_date, int max_upload_date, const char* min_taken_date, const char* max_ta ken_date, int privacy_filter, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_photos_getNotInSet(flickcurl* fc, int min_uploa d_date, int max_upload_date, const char* min_taken_date, const char* max_ta ken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_perms* flickcurl_photos_getPerms(flickcurl* fc, const char* photo _id); flickcurl_perms* flickcurl_photos_getPerms(flickcurl* fc, const char* photo _id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getRecent(flickcurl* fc, const char* ext ras, int per_page, int page); flickcurl_photo** flickcurl_photos_getRecent(flickcurl* fc, const char* ext ras, int per_page, int page);
FLICKCURL_API
flickcurl_size** flickcurl_photos_getSizes(flickcurl* fc, const char* photo _id); flickcurl_size** flickcurl_photos_getSizes(flickcurl* fc, const char* photo _id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getUntagged(flickcurl* fc, int min_uploa d_date, int max_upload_date, const char* min_taken_date, const char* max_ta ken_date, int privacy_filter, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_photos_getUntagged(flickcurl* fc, int min_uploa d_date, int max_upload_date, const char* min_taken_date, const char* max_ta ken_date, int privacy_filter, const char* extras, int per_page, int page);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getWithGeoData(flickcurl* fc, int min_up load_date, int max_upload_date, const char* min_taken_date, const char* max _taken_date, int privacy_filter, const char* extras, int per_page, int page ); flickcurl_photo** flickcurl_photos_getWithGeoData(flickcurl* fc, int min_up load_date, int max_upload_date, const char* min_taken_date, const char* max _taken_date, int privacy_filter, const char* extras, int per_page, int page );
FLICKCURL_API
flickcurl_photo** flickcurl_photos_getWithoutGeoData(flickcurl* fc, int min _upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int p age); flickcurl_photo** flickcurl_photos_getWithoutGeoData(flickcurl* fc, int min _upload_date, int max_upload_date, const char* min_taken_date, const char* max_taken_date, int privacy_filter, const char* extras, int per_page, int p age);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_recentlyUpdated(flickcurl* fc, int min_d ate, const char* extras, int per_page, int page); flickcurl_photo** flickcurl_photos_recentlyUpdated(flickcurl* fc, int min_d ate, const char* extras, int per_page, int page);
FLICKCURL_API
int flickcurl_photos_removeTag(flickcurl* fc, const char* tag_id); int flickcurl_photos_removeTag(flickcurl* fc, const char* tag_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photos_search(flickcurl* fc, flickcurl_search_p arams* params); flickcurl_photo** flickcurl_photos_search(flickcurl* fc, flickcurl_search_p arams* params);
FLICKCURL_API
int flickcurl_photos_setContentType(flickcurl* fc, const char* photo_id, in t content_type); int flickcurl_photos_setContentType(flickcurl* fc, const char* photo_id, in t content_type);
FLICKCURL_API
int flickcurl_photos_setDates(flickcurl* fc, const char* photo_id, int date _posted, int date_taken, int date_taken_granularity); int flickcurl_photos_setDates(flickcurl* fc, const char* photo_id, int date _posted, int date_taken, int date_taken_granularity);
FLICKCURL_API
int flickcurl_photos_setMeta(flickcurl* fc, const char* photo_id, const cha r* title, const char* description); int flickcurl_photos_setMeta(flickcurl* fc, const char* photo_id, const cha r* title, const char* description);
FLICKCURL_API
int flickcurl_photos_setPerms(flickcurl* fc, const char* photo_id, flickcur l_perms* perms); int flickcurl_photos_setPerms(flickcurl* fc, const char* photo_id, flickcur l_perms* perms);
FLICKCURL_API
int flickcurl_photos_setSafetyLevel(flickcurl* fc, const char* photo_id, in t safety_level, int hidden); int flickcurl_photos_setSafetyLevel(flickcurl* fc, const char* photo_id, in t safety_level, int hidden);
FLICKCURL_API
int flickcurl_photos_setTags(flickcurl* fc, const char* photo_id, const cha r* tags); int flickcurl_photos_setTags(flickcurl* fc, const char* photo_id, const cha r* tags);
/* flickr.places */ /* flickr.places */
FLICKCURL_API
flickcurl_place** flickcurl_places_find(flickcurl* fc, const char* query); flickcurl_place** flickcurl_places_find(flickcurl* fc, const char* query);
FLICKCURL_API
flickcurl_place* flickcurl_places_findByLatLon(flickcurl* fc, double lat, d ouble lon, int accuracy); flickcurl_place* flickcurl_places_findByLatLon(flickcurl* fc, double lat, d ouble lon, int accuracy);
FLICKCURL_API
flickcurl_place* flickcurl_places_resolvePlaceId(flickcurl* fc, const char* place_id); flickcurl_place* flickcurl_places_resolvePlaceId(flickcurl* fc, const char* place_id);
FLICKCURL_API
flickcurl_place* flickcurl_places_resolvePlaceURL(flickcurl* fc, const char * url); flickcurl_place* flickcurl_places_resolvePlaceURL(flickcurl* fc, const char * url);
FLICKCURL_API
const char* flickcurl_get_place_type_label(flickcurl_place_type place_type) ; const char* flickcurl_get_place_type_label(flickcurl_place_type place_type) ;
flickcurl_place_type flickcurl_get_place_type_by_label(const char* place_la bel); flickcurl_place_type flickcurl_get_place_type_by_label(const char* place_la bel);
/* flickr.contacts */ /* flickr.contacts */
FLICKCURL_API
void flickcurl_free_contact(flickcurl_contact *contact_object); void flickcurl_free_contact(flickcurl_contact *contact_object);
FLICKCURL_API
void flickcurl_free_contacts(flickcurl_contact **contacts_object); void flickcurl_free_contacts(flickcurl_contact **contacts_object);
FLICKCURL_API
flickcurl_contact** flickcurl_contacts_getList(flickcurl* fc, const char* f ilter, int page, int per_page); flickcurl_contact** flickcurl_contacts_getList(flickcurl* fc, const char* f ilter, int page, int per_page);
FLICKCURL_API
flickcurl_contact** flickcurl_contacts_getPublicList(flickcurl* fc, const c har* user_id, int page, int per_page); flickcurl_contact** flickcurl_contacts_getPublicList(flickcurl* fc, const c har* user_id, int page, int per_page);
/* flickr.photos.comments */ /* flickr.photos.comments */
FLICKCURL_API
void flickcurl_free_comment(flickcurl_comment *comment_object); void flickcurl_free_comment(flickcurl_comment *comment_object);
FLICKCURL_API
void flickcurl_free_comments(flickcurl_comment **comments_object); void flickcurl_free_comments(flickcurl_comment **comments_object);
FLICKCURL_API
char* flickcurl_photos_comments_addComment(flickcurl* fc, const char* photo _id, const char* comment_text); char* flickcurl_photos_comments_addComment(flickcurl* fc, const char* photo _id, const char* comment_text);
FLICKCURL_API
int flickcurl_photos_comments_deleteComment(flickcurl* fc, const char* comm ent_id); int flickcurl_photos_comments_deleteComment(flickcurl* fc, const char* comm ent_id);
FLICKCURL_API
int flickcurl_photos_comments_editComment(flickcurl* fc, const char* commen t_id, const char* comment_text); int flickcurl_photos_comments_editComment(flickcurl* fc, const char* commen t_id, const char* comment_text);
FLICKCURL_API
flickcurl_comment** flickcurl_photos_comments_getList(flickcurl* fc, const char* photo_id); flickcurl_comment** flickcurl_photos_comments_getList(flickcurl* fc, const char* photo_id);
/* flickr.photos.geo */ /* flickr.photos.geo */
FLICKCURL_API
flickcurl_location* flickcurl_photos_geo_getLocation(flickcurl* fc, const c har* photo_id); flickcurl_location* flickcurl_photos_geo_getLocation(flickcurl* fc, const c har* photo_id);
FLICKCURL_API
flickcurl_perms* flickcurl_photos_geo_getPerms(flickcurl* fc, const char* p hoto_id); flickcurl_perms* flickcurl_photos_geo_getPerms(flickcurl* fc, const char* p hoto_id);
FLICKCURL_API
int flickcurl_photos_geo_removeLocation(flickcurl* fc, const char* photo_id ); int flickcurl_photos_geo_removeLocation(flickcurl* fc, const char* photo_id );
FLICKCURL_API
int flickcurl_photos_geo_setLocation(flickcurl* fc, const char* photo_id, f lickcurl_location* location); int flickcurl_photos_geo_setLocation(flickcurl* fc, const char* photo_id, f lickcurl_location* location);
FLICKCURL_API
int flickcurl_photos_geo_setPerms(flickcurl* fc, const char* photo_id, flic kcurl_perms* perms); int flickcurl_photos_geo_setPerms(flickcurl* fc, const char* photo_id, flic kcurl_perms* perms);
FLICKCURL_API
const char* flickcurl_get_location_accuracy_label(int accuracy); const char* flickcurl_get_location_accuracy_label(int accuracy);
/* flickr.photos.licenses */ /* flickr.photos.licenses */
FLICKCURL_API
flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc); flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc);
FLICKCURL_API
flickcurl_license* flickcurl_photos_licenses_getInfo_by_id(flickcurl *fc, i nt id); flickcurl_license* flickcurl_photos_licenses_getInfo_by_id(flickcurl *fc, i nt id);
FLICKCURL_API
int flickcurl_photos_licenses_setLicense(flickcurl* fc, const char* photo_i d, int license_id); int flickcurl_photos_licenses_setLicense(flickcurl* fc, const char* photo_i d, int license_id);
/* flickr.photos.notes */ /* flickr.photos.notes */
FLICKCURL_API
char* flickcurl_photos_notes_add(flickcurl* fc, const char* photo_id, int n ote_x, int note_y, int note_w, int note_h, const char* note_text); char* flickcurl_photos_notes_add(flickcurl* fc, const char* photo_id, int n ote_x, int note_y, int note_w, int note_h, const char* note_text);
FLICKCURL_API
int flickcurl_photos_notes_delete(flickcurl* fc, const char* note_id); int flickcurl_photos_notes_delete(flickcurl* fc, const char* note_id);
FLICKCURL_API
int flickcurl_photos_notes_edit(flickcurl* fc, const char* note_id, int not e_x, int note_y, int note_w, int note_h, const char* note_text); int flickcurl_photos_notes_edit(flickcurl* fc, const char* note_id, int not e_x, int note_y, int note_w, int note_h, const char* note_text);
FLICKCURL_API
/* flickr.photos.upload */ /* flickr.photos.upload */
FLICKCURL_API
flickcurl_ticket** flickcurl_photos_upload_checkTickets(flickcurl* fc, cons t char** tickets_ids); flickcurl_ticket** flickcurl_photos_upload_checkTickets(flickcurl* fc, cons t char** tickets_ids);
/* flickr.photos.transform */ /* flickr.photos.transform */
FLICKCURL_API
int flickcurl_photos_transform_rotate(flickcurl* fc, const char* photo_id, int degrees); int flickcurl_photos_transform_rotate(flickcurl* fc, const char* photo_id, int degrees);
/* flickr.photosets */ /* flickr.photosets */
FLICKCURL_API
int flickcurl_photosets_addPhoto(flickcurl* fc, const char* photoset_id, co nst char* photo_id); int flickcurl_photosets_addPhoto(flickcurl* fc, const char* photoset_id, co nst char* photo_id);
FLICKCURL_API
char* flickcurl_photosets_create(flickcurl* fc, const char* title, const ch ar* description, const char* primary_photo_id, char** photoset_url_p); char* flickcurl_photosets_create(flickcurl* fc, const char* title, const ch ar* description, const char* primary_photo_id, char** photoset_url_p);
FLICKCURL_API
int flickcurl_photosets_delete(flickcurl* fc, const char* photoset_id); int flickcurl_photosets_delete(flickcurl* fc, const char* photoset_id);
FLICKCURL_API
int flickcurl_photosets_editMeta(flickcurl* fc, const char* photoset_id, co nst char* title, const char* description); int flickcurl_photosets_editMeta(flickcurl* fc, const char* photoset_id, co nst char* title, const char* description);
FLICKCURL_API
int flickcurl_photosets_editPhotos(flickcurl* fc, const char* photoset_id, const char* primary_photo_id, const char** photo_ids_array); int flickcurl_photosets_editPhotos(flickcurl* fc, const char* photoset_id, const char* primary_photo_id, const char** photo_ids_array);
FLICKCURL_API
flickcurl_context** flickcurl_photosets_getContext(flickcurl* fc, const cha r* photo_id, const char* photoset_id); flickcurl_context** flickcurl_photosets_getContext(flickcurl* fc, const cha r* photo_id, const char* photoset_id);
FLICKCURL_API
flickcurl_photoset* flickcurl_photosets_getInfo(flickcurl* fc, const char* photoset_id); flickcurl_photoset* flickcurl_photosets_getInfo(flickcurl* fc, const char* photoset_id);
FLICKCURL_API
flickcurl_photoset** flickcurl_photosets_getList(flickcurl* fc, const char* user_id); flickcurl_photoset** flickcurl_photosets_getList(flickcurl* fc, const char* user_id);
FLICKCURL_API
flickcurl_photo** flickcurl_photosets_getPhotos(flickcurl* fc, const char* photoset_id, const char* extras, int privacy_filter, int per_page, int page ); flickcurl_photo** flickcurl_photosets_getPhotos(flickcurl* fc, const char* photoset_id, const char* extras, int privacy_filter, int per_page, int page );
FLICKCURL_API
int flickcurl_photosets_orderSets(flickcurl* fc, const char** photoset_ids_ array); int flickcurl_photosets_orderSets(flickcurl* fc, const char** photoset_ids_ array);
FLICKCURL_API
int flickcurl_photosets_removePhoto(flickcurl* fc, const char* photoset_id, const char* photo_id); int flickcurl_photosets_removePhoto(flickcurl* fc, const char* photoset_id, const char* photo_id);
/* flickr.photosets.comments */ /* flickr.photosets.comments */
FLICKCURL_API
char* flickcurl_photosets_comments_addComment(flickcurl* fc, const char* ph otoset_id, const char* comment_text); char* flickcurl_photosets_comments_addComment(flickcurl* fc, const char* ph otoset_id, const char* comment_text);
FLICKCURL_API
int flickcurl_photosets_comments_deleteComment(flickcurl* fc, const char* c omment_id); int flickcurl_photosets_comments_deleteComment(flickcurl* fc, const char* c omment_id);
FLICKCURL_API
int flickcurl_photosets_comments_editComment(flickcurl* fc, const char* com ment_id, const char* comment_text); int flickcurl_photosets_comments_editComment(flickcurl* fc, const char* com ment_id, const char* comment_text);
FLICKCURL_API
flickcurl_comment** flickcurl_photosets_comments_getList(flickcurl* fc, con st char* photoset_id); flickcurl_comment** flickcurl_photosets_comments_getList(flickcurl* fc, con st char* photoset_id);
/* flickr.prefs */
FLICKCURL_API
int flickcurl_prefs_getContentType(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getHidden(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getPrivacy(flickcurl* fc);
FLICKCURL_API
int flickcurl_prefs_getSafetyLevel(flickcurl* fc);
/* flickr.reflection */ /* flickr.reflection */
FLICKCURL_API
void flickcurl_free_method(flickcurl_method *method); void flickcurl_free_method(flickcurl_method *method);
FLICKCURL_API
char** flickcurl_reflection_getMethods(flickcurl* fc); char** flickcurl_reflection_getMethods(flickcurl* fc);
FLICKCURL_API
flickcurl_method* flickcurl_reflection_getMethodInfo(flickcurl* fc, const c har* name); flickcurl_method* flickcurl_reflection_getMethodInfo(flickcurl* fc, const c har* name);
/* flickr.tag */ /* flickr.tag */
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getHotList(flickcurl* fc, const char* period , int tag_count); flickcurl_tag** flickcurl_tags_getHotList(flickcurl* fc, const char* period , int tag_count);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListPhoto(flickcurl* fc, const char* phot o_id); flickcurl_tag** flickcurl_tags_getListPhoto(flickcurl* fc, const char* phot o_id);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUser(flickcurl* fc, const char* user_ id); flickcurl_tag** flickcurl_tags_getListUser(flickcurl* fc, const char* user_ id);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUserPopular(flickcurl* fc, const char * user_id, int pop_count); flickcurl_tag** flickcurl_tags_getListUserPopular(flickcurl* fc, const char * user_id, int pop_count);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getListUserRaw(flickcurl* fc, const char* ta g); flickcurl_tag** flickcurl_tags_getListUserRaw(flickcurl* fc, const char* ta g);
FLICKCURL_API
flickcurl_tag** flickcurl_tags_getRelated(flickcurl* fc, const char* tag); flickcurl_tag** flickcurl_tags_getRelated(flickcurl* fc, const char* tag);
/* flickr.test */ /* flickr.test */
FLICKCURL_API
int flickcurl_test_echo(flickcurl* fc, const char* key, const char* value); int flickcurl_test_echo(flickcurl* fc, const char* key, const char* value);
FLICKCURL_API
char* flickcurl_test_login(flickcurl* fc); char* flickcurl_test_login(flickcurl* fc);
FLICKCURL_API
int flickcurl_test_null(flickcurl* fc); int flickcurl_test_null(flickcurl* fc);
/* flickr.urls */ /* flickr.urls */
FLICKCURL_API
char* flickcurl_urls_getGroup(flickcurl* fc, const char* group_id); char* flickcurl_urls_getGroup(flickcurl* fc, const char* group_id);
FLICKCURL_API
char* flickcurl_urls_getUserPhotos(flickcurl* fc, const char* user_id); char* flickcurl_urls_getUserPhotos(flickcurl* fc, const char* user_id);
FLICKCURL_API
char* flickcurl_urls_getUserProfile(flickcurl* fc, const char* user_id); char* flickcurl_urls_getUserProfile(flickcurl* fc, const char* user_id);
FLICKCURL_API
char* flickcurl_urls_lookupGroup(flickcurl* fc, const char* url); char* flickcurl_urls_lookupGroup(flickcurl* fc, const char* url);
FLICKCURL_API
char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url); char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url);
/* Upload API */ /* Upload API */
FLICKCURL_API
FLICKCURL_DEPRECATED flickcurl_upload_status* flickcurl_photos_upload(flick curl* fc, const char* photo_file, const char *title, const char *descriptio n, const char *tags, int is_public, int is_friend, int is_family); FLICKCURL_DEPRECATED flickcurl_upload_status* flickcurl_photos_upload(flick curl* fc, const char* photo_file, const char *title, const char *descriptio n, const char *tags, int is_public, int is_friend, int is_family);
FLICKCURL_API
flickcurl_upload_status* flickcurl_photos_upload_params(flickcurl* fc, flic kcurl_upload_params* params); flickcurl_upload_status* flickcurl_photos_upload_params(flickcurl* fc, flic kcurl_upload_params* params);
FLICKCURL_API
flickcurl_upload_status* flickcurl_photos_replace(flickcurl* fc, const char * photo_file, const char *photo_id, int async); flickcurl_upload_status* flickcurl_photos_replace(flickcurl* fc, const char * photo_file, const char *photo_id, int async);
FLICKCURL_API
void flickcurl_free_upload_status(flickcurl_upload_status* status); void flickcurl_free_upload_status(flickcurl_upload_status* status);
FLICKCURL_API
FLICKCURL_DEPRECATED void flickcurl_upload_status_free(flickcurl_upload_sta tus* status); FLICKCURL_DEPRECATED void flickcurl_upload_status_free(flickcurl_upload_sta tus* status);
FLICKCURL_API
char* flickcurl_array_join(const char *array[], char delim); char* flickcurl_array_join(const char *array[], char delim);
FLICKCURL_API
char** flickcurl_array_split(const char *str, char delim); char** flickcurl_array_split(const char *str, char delim);
FLICKCURL_API
void flickcurl_array_free(char *array[]); void flickcurl_array_free(char *array[]);
/* ignore these */ /* ignore these */
/** /**
* FLICKCURL_DEPRECATED: * FLICKCURL_DEPRECATED:
* *
* deprecated * deprecated
*/ */
/** /**
* flickcurl_category_s: * flickcurl_category_s:
 End of changes. 186 change blocks. 
1 lines changed or deleted 225 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/