flickcurl.h | flickcurl.h | |||
---|---|---|---|---|
skipping to change at line 172 | skipping to change at line 172 | |||
* @PHOTO_FIELD_region_woeid: region WOE ID | * @PHOTO_FIELD_region_woeid: region WOE ID | |||
* @PHOTO_FIELD_country_woeid: country WOE ID | * @PHOTO_FIELD_country_woeid: country WOE ID | |||
* @PHOTO_FIELD_usage_candownload: can download | * @PHOTO_FIELD_usage_candownload: can download | |||
* @PHOTO_FIELD_usage_canblog: can blog | * @PHOTO_FIELD_usage_canblog: can blog | |||
* @PHOTO_FIELD_usage_canprint: can print | * @PHOTO_FIELD_usage_canprint: can print | |||
* @PHOTO_FIELD_owner_iconserver: server of owner's icon | * @PHOTO_FIELD_owner_iconserver: server of owner's icon | |||
* @PHOTO_FIELD_owner_iconfarm: farm of owner's icon | * @PHOTO_FIELD_owner_iconfarm: farm of owner's icon | |||
* @PHOTO_FIELD_original_width: original photo width | * @PHOTO_FIELD_original_width: original photo width | |||
* @PHOTO_FIELD_original_height: original photo height | * @PHOTO_FIELD_original_height: original photo height | |||
* @PHOTO_FIELD_views: number of photo views | * @PHOTO_FIELD_views: number of photo views | |||
* @PHOTO_FIELD_comments: number of photo comments | ||||
* @PHOTO_FIELD_favorites: number of photo favorites | ||||
* @PHOTO_FIELD_none: internal | * @PHOTO_FIELD_none: internal | |||
* @PHOTO_FIELD_FIRST: internal offset to first in enum list | * @PHOTO_FIELD_FIRST: internal offset to first in enum list | |||
* @PHOTO_FIELD_LAST: internal offset to last in enum list | * @PHOTO_FIELD_LAST: internal offset to last in enum list | |||
* | * | |||
* Fields of a flickcurl_photo* | * Fields of a flickcurl_photo* | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
PHOTO_FIELD_none, | PHOTO_FIELD_none, | |||
PHOTO_FIELD_dateuploaded, | PHOTO_FIELD_dateuploaded, | |||
PHOTO_FIELD_farm, | PHOTO_FIELD_farm, | |||
skipping to change at line 239 | skipping to change at line 241 | |||
PHOTO_FIELD_region_woeid, | PHOTO_FIELD_region_woeid, | |||
PHOTO_FIELD_country_woeid, | PHOTO_FIELD_country_woeid, | |||
PHOTO_FIELD_usage_candownload, | PHOTO_FIELD_usage_candownload, | |||
PHOTO_FIELD_usage_canblog, | PHOTO_FIELD_usage_canblog, | |||
PHOTO_FIELD_usage_canprint, | PHOTO_FIELD_usage_canprint, | |||
PHOTO_FIELD_owner_iconserver, | PHOTO_FIELD_owner_iconserver, | |||
PHOTO_FIELD_owner_iconfarm, | PHOTO_FIELD_owner_iconfarm, | |||
PHOTO_FIELD_original_width, | PHOTO_FIELD_original_width, | |||
PHOTO_FIELD_original_height, | PHOTO_FIELD_original_height, | |||
PHOTO_FIELD_views, | PHOTO_FIELD_views, | |||
PHOTO_FIELD_comments, | ||||
PHOTO_FIELD_favorites, | ||||
PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded, | PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded, | |||
PHOTO_FIELD_LAST = PHOTO_FIELD_views | PHOTO_FIELD_LAST = PHOTO_FIELD_favorites | |||
} flickcurl_photo_field_type; | } flickcurl_photo_field_type; | |||
/** | /** | |||
* flickcurl: | * flickcurl: | |||
* | * | |||
* Flickcurl session object created by flickcurl_new() and destroyed | * Flickcurl session object created by flickcurl_new() and destroyed | |||
* by flickcurl_free() | * by flickcurl_free() | |||
*/ | */ | |||
typedef struct flickcurl_s flickcurl; | typedef struct flickcurl_s flickcurl; | |||
skipping to change at line 923 | skipping to change at line 927 | |||
char* path; | char* path; | |||
int count; | int count; | |||
struct flickcurl_category_s** categories; | struct flickcurl_category_s** categories; | |||
int categories_count; | int categories_count; | |||
flickcurl_group** groups; | flickcurl_group** groups; | |||
int groups_count; | int groups_count; | |||
}; | }; | |||
typedef struct flickcurl_category_s flickcurl_category; | typedef struct flickcurl_category_s flickcurl_category; | |||
/** | /** | |||
* flickcurl_gallery: | ||||
* @id: gallery ID | ||||
* @url: URL of gallery | ||||
* @owner: owner NSID | ||||
* @date_create: creation date of gallery | ||||
* @date_update: update / last modified date of gallery | ||||
* @primary_photo: primary photo for the gallery | ||||
* @count_photos: number of photos in the gallery | ||||
* @count_videos: number of photos in the gallery | ||||
* @title: Gallery title | ||||
* @description: Gallery description | ||||
* | ||||
* A photo gallery. | ||||
* | ||||
* The list of photos in the gallery is not curently available via the API. | ||||
* It should be flickr.galleries.getInfo() but that is does not exist | ||||
* at this date 2010-01-21. | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
char *id; | ||||
char *url; | ||||
char *owner; | ||||
int date_create; | ||||
int date_update; | ||||
flickcurl_photo* primary_photo; | ||||
int count_photos; | ||||
int count_videos; | ||||
char *title; | ||||
char *description; | ||||
} flickcurl_gallery; | ||||
/** | ||||
* flickcurl_photoset: | * flickcurl_photoset: | |||
* @id: photoset ID | * @id: photoset ID | |||
* @primary: primary photo ID | * @primary: primary photo ID | |||
* @secret: secret | * @secret: secret | |||
* @server: server | * @server: server | |||
* @farm: farm | * @farm: farm | |||
* @photos_count: count of photos in set | * @photos_count: count of photos in set | |||
* @title: title of photoset | * @title: title of photoset | |||
* @description: description of photoset (may be NULL) | * @description: description of photoset (may be NULL) | |||
* @photos: photos in a photoset (may be NULL) | * @photos: photos in a photoset (may be NULL) | |||
skipping to change at line 1223 | skipping to change at line 1260 | |||
double radius; | double radius; | |||
char* radius_units; | char* radius_units; | |||
char* contacts; | char* contacts; | |||
int woe_id; | int woe_id; | |||
int geo_context; | int geo_context; | |||
int is_commons; | int is_commons; | |||
int in_gallery; | int in_gallery; | |||
} flickcurl_search_params; | } flickcurl_search_params; | |||
/** | /** | |||
* flickcurl_stat: | ||||
* @views: number of views of item | ||||
* @comments: number of comments on item | ||||
* @favorites: number of item favorites | ||||
* @name: name assocated with stat (e.g. domain name) | ||||
* @url: URL associated with stat (e.g. referrer URL) | ||||
* @searchterms: search term assocated with stat | ||||
* | ||||
* Statistics object | ||||
*/ | ||||
typedef struct { | ||||
int views; | ||||
int comments; | ||||
int favorites; | ||||
char *name; | ||||
char *url; | ||||
char *searchterms; | ||||
} flickcurl_stat; | ||||
/** | ||||
* flickcurl_view_stats | ||||
* @total: total view | ||||
* @photos: number of photo views | ||||
* @photostreams: number of photostream views | ||||
* @sets: number of set views | ||||
* @collections: number of collection views | ||||
* | ||||
* Total views statistics | ||||
*/ | ||||
typedef struct { | ||||
int total; | ||||
int photos; | ||||
int photostreams; | ||||
int sets; | ||||
int collections; | ||||
} flickcurl_view_stats; | ||||
/** | ||||
* 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. | |||
* | * | |||
skipping to change at line 1648 | skipping to change at line 1723 | |||
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_API | |||
flickcurl_photos_list* flickcurl_favorites_getList_params(flickcurl* fc, co nst char* user_id, flickcurl_photos_list_params* list_params); | flickcurl_photos_list* flickcurl_favorites_getList_params(flickcurl* fc, co nst char* user_id, flickcurl_photos_list_params* list_params); | |||
FLICKCURL_API | 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 | FLICKCURL_API | |||
flickcurl_photos_list* flickcurl_favorites_getPublicList_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params); | flickcurl_photos_list* flickcurl_favorites_getPublicList_params(flickcurl* fc, const char* user_id, flickcurl_photos_list_params* list_params); | |||
FLICKCURL_API | FLICKCURL_API | |||
int flickcurl_favorites_remove(flickcurl* fc, const char* photo_id); | int flickcurl_favorites_remove(flickcurl* fc, const char* photo_id); | |||
/* flickr.galleries */ | ||||
FLICKCURL_API | ||||
int flickcurl_galleries_addPhoto(flickcurl* fc, const char* gallery_id, con | ||||
st char* photo_id, const char* comment_text); | ||||
FLICKCURL_API | ||||
flickcurl_gallery** flickcurl_galleries_getList(flickcurl* fc, const char* | ||||
user_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_gallery** flickcurl_galleries_getListForPhoto(flickcurl* fc, cons | ||||
t char* photo_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
void flickcurl_free_galleries(flickcurl_gallery **galleries_object); | ||||
/* flickr.groups */ | /* flickr.groups */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_category(flickcurl_category *category); | void flickcurl_free_category(flickcurl_category *category); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_categories(flickcurl_category **categories_object); | void flickcurl_free_categories(flickcurl_category **categories_object); | |||
FLICKCURL_API | 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_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_API | |||
skipping to change at line 1724 | skipping to change at line 1809 | |||
void flickcurl_free_sizes(flickcurl_size **sizes_object); | void flickcurl_free_sizes(flickcurl_size **sizes_object); | |||
/* flickr.people */ | /* flickr.people */ | |||
FLICKCURL_API | FLICKCURL_API | |||
char* flickcurl_people_findByEmail(flickcurl* fc, const char* email); | char* flickcurl_people_findByEmail(flickcurl* fc, const char* email); | |||
FLICKCURL_API | FLICKCURL_API | |||
char* flickcurl_people_findByUsername(flickcurl* fc, const char* username); | char* flickcurl_people_findByUsername(flickcurl* fc, const char* username); | |||
FLICKCURL_API | 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_API | |||
flickcurl_photos_list* flickcurl_people_getPhotosOf_params(flickcurl* fc, c | ||||
onst char* user_id, flickcurl_photos_list_params* list_params); | ||||
FLICKCURL_API | ||||
flickcurl_photo** flickcurl_people_getPhotosOf(flickcurl* fc, const char* u | ||||
ser_id, const char* extras, int per_page, int page); | ||||
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_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_API | |||
flickcurl_photos_list* flickcurl_people_getPublicPhotos_params(flickcurl* f c, const char* user_id, flickcurl_photos_list_params* list_params); | flickcurl_photos_list* flickcurl_people_getPublicPhotos_params(flickcurl* f c, const char* user_id, flickcurl_photos_list_params* list_params); | |||
FLICKCURL_API | 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 | FLICKCURL_API | |||
skipping to change at line 1804 | skipping to change at line 1893 | |||
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 | 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 | 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 | 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 | 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.photos.people */ | ||||
FLICKCURL_API | ||||
int flickcurl_photos_people_add(flickcurl* fc, const char* photo_id, const | ||||
char* user_id, int person_x, int person_y, int person_w, int person_h); | ||||
FLICKCURL_API | ||||
int flickcurl_photos_people_delete(flickcurl* fc, const char* photo_id, con | ||||
st char* user_id); | ||||
FLICKCURL_API | ||||
int flickcurl_photos_people_deleteCoords(flickcurl* fc, const char* photo_i | ||||
d, const char* user_id); | ||||
FLICKCURL_API | ||||
int flickcurl_photos_people_editCoords(flickcurl* fc, const char* photo_id, | ||||
const char* user_id, int person_x, int person_y, int person_w, int person_ | ||||
h); | ||||
FLICKCURL_API | ||||
flickcurl_person** flickcurl_photos_people_getList(flickcurl* fc, const cha | ||||
r* photo_id); | ||||
/* flickr.places */ | /* flickr.places */ | |||
FLICKCURL_API | 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_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_DEPRECATED | FLICKCURL_API FLICKCURL_DEPRECATED | |||
flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic(flickcurl* f c, const char* place_id, const char* woe_id); | flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic(flickcurl* f c, const char* place_id, const char* woe_id); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic2(flickcurl* fc, const char* place_id, int woe_id); | flickcurl_place** flickcurl_places_getChildrenWithPhotosPublic2(flickcurl* fc, const char* place_id, int woe_id); | |||
FLICKCURL_API FLICKCURL_DEPRECATED | FLICKCURL_API FLICKCURL_DEPRECATED | |||
skipping to change at line 1980 | skipping to change at line 2081 | |||
int flickcurl_prefs_getSafetyLevel(flickcurl* fc); | int flickcurl_prefs_getSafetyLevel(flickcurl* fc); | |||
/* flickr.reflection */ | /* flickr.reflection */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_method(flickcurl_method *method); | void flickcurl_free_method(flickcurl_method *method); | |||
FLICKCURL_API | FLICKCURL_API | |||
char** flickcurl_reflection_getMethods(flickcurl* fc); | char** flickcurl_reflection_getMethods(flickcurl* fc); | |||
FLICKCURL_API | 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.stats */ | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getCollectionDomains(flickcurl* fc, const | ||||
char* date, const char* collection_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getCollectionReferrers(flickcurl* fc, cons | ||||
t char* date, const char* domain, const char* collection_id, int per_page, | ||||
int page); | ||||
FLICKCURL_API | ||||
int flickcurl_stats_getCollectionStats(flickcurl* fc, const char* date, con | ||||
st char* collection_id); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotoDomains(flickcurl* fc, const char* | ||||
date, const char* photo_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotoReferrers(flickcurl* fc, const cha | ||||
r* date, const char* domain, const char* photo_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_stat* flickcurl_stats_getPhotoStats(flickcurl* fc, const char* da | ||||
te, const char* photo_id); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotosetDomains(flickcurl* fc, const ch | ||||
ar* date, const char* photoset_id, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotosetReferrers(flickcurl* fc, const | ||||
char* date, const char* domain, const char* photoset_id, int per_page, int | ||||
page); | ||||
FLICKCURL_API | ||||
int flickcurl_stats_getPhotosetStats(flickcurl* fc, const char* date, const | ||||
char* photoset_id); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotostreamDomains(flickcurl* fc, const | ||||
char* date, int per_page, int page); | ||||
FLICKCURL_API | ||||
flickcurl_stat** flickcurl_stats_getPhotostreamReferrers(flickcurl* fc, con | ||||
st char* date, const char* domain, int per_page, int page); | ||||
FLICKCURL_API | ||||
int flickcurl_stats_getPhotostreamStats(flickcurl* fc, const char* date); | ||||
FLICKCURL_API | ||||
flickcurl_photo** flickcurl_stats_getPopularPhotos(flickcurl* fc, const cha | ||||
r* date, const char* sort, int per_page, int page, const char* extras); | ||||
FLICKCURL_API | ||||
flickcurl_view_stats* flickcurl_stats_getTotalViews(flickcurl* fc, const ch | ||||
ar* date); | ||||
FLICKCURL_API | ||||
void flickcurl_free_stat(flickcurl_stat *stat); | ||||
FLICKCURL_API | ||||
void flickcurl_free_stats(flickcurl_stat **stats_object); | ||||
FLICKCURL_API | ||||
void flickcurl_free_view_stats(flickcurl_view_stats *view_stats); | ||||
/* flickr.tag */ | /* flickr.tag */ | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_photos_list* flickcurl_tags_getClusterPhotos(flickcurl* fc, const char* tag, const char* cluster_id, flickcurl_photos_list_params* list_para ms); | flickcurl_photos_list* flickcurl_tags_getClusterPhotos(flickcurl* fc, const char* tag, const char* cluster_id, flickcurl_photos_list_params* list_para ms); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_tag_clusters* flickcurl_tags_getClusters(flickcurl* fc, const cha r* tag); | flickcurl_tag_clusters* flickcurl_tags_getClusters(flickcurl* fc, const cha r* tag); | |||
FLICKCURL_API | 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_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_API | |||
End of changes. 9 change blocks. | ||||
1 lines changed or deleted | 165 lines changed or added | |||