flickcurl.h | flickcurl.h | |||
---|---|---|---|---|
skipping to change at line 103 | skipping to change at line 103 | |||
PHOTO_FIELD_title, | PHOTO_FIELD_title, | |||
PHOTO_FIELD_visibility_isfamily, | PHOTO_FIELD_visibility_isfamily, | |||
PHOTO_FIELD_visibility_isfriend, | PHOTO_FIELD_visibility_isfriend, | |||
PHOTO_FIELD_visibility_ispublic, | PHOTO_FIELD_visibility_ispublic, | |||
PHOTO_FIELD_secret, | PHOTO_FIELD_secret, | |||
PHOTO_FIELD_originalsecret, | PHOTO_FIELD_originalsecret, | |||
PHOTO_FIELD_location_neighborhood, | PHOTO_FIELD_location_neighborhood, | |||
PHOTO_FIELD_location_locality, | PHOTO_FIELD_location_locality, | |||
PHOTO_FIELD_location_region, | PHOTO_FIELD_location_region, | |||
PHOTO_FIELD_location_country, | PHOTO_FIELD_location_country, | |||
PHOTO_FIELD_FIRST = PHOTO_FIELD_dateuploaded, | ||||
PHOTO_FIELD_LAST = PHOTO_FIELD_location_country, | PHOTO_FIELD_LAST = PHOTO_FIELD_location_country, | |||
} flickcurl_photo_field_type; | } flickcurl_photo_field_type; | |||
/* The main object type */ | /* The main object type */ | |||
typedef struct flickcurl_s flickcurl; | typedef struct flickcurl_s flickcurl; | |||
/* Forward structure references */ | /* Forward structure references */ | |||
struct flickcurl_s; | struct flickcurl_s; | |||
struct flickcurl_photo_s; | struct flickcurl_photo_s; | |||
skipping to change at line 349 | skipping to change at line 350 | |||
int tag; | int tag; | |||
char* label; | char* label; | |||
char* raw; | char* raw; | |||
char* clean; | char* clean; | |||
} flickcurl_exif; | } flickcurl_exif; | |||
/** | /** | |||
* flickcurl_group: | * flickcurl_group: | |||
* @nsid: NSID | * @nsid: NSID | |||
* @name: Group Name | * @name: Group Name | |||
* @description: Description | ||||
* @lang: Language | ||||
* @is_admin: is admin flag | * @is_admin: is admin flag | |||
* @is_pool_moderated: is the pool moderated | ||||
* @is_eighteenplus: 18+ group | ||||
* @privacy: privacy level | * @privacy: privacy level | |||
* @photos: photos in group count | * @photos: photos in group count | |||
* @iconserver: icon server ID | * @iconserver: icon server ID | |||
* @members: member count | ||||
* @throttle_count: throttle count | ||||
* @throttle_mode: throttle mode (day, ...) | ||||
* @throttle_remaining: throttle remaining | ||||
* | * | |||
* A group. | * A group. | |||
*/ | */ | |||
typedef struct { | typedef struct { | |||
char* nsid; | char* nsid; | |||
char* name; | char* name; | |||
char* description; | ||||
char* lang; | ||||
int is_admin; | int is_admin; | |||
int is_pool_moderated; | ||||
int is_eighteenplus; | ||||
int privacy; | int privacy; | |||
int photos; | int photos; | |||
int iconserver; | int iconserver; | |||
int members; | ||||
int throttle_count; | ||||
char* throttle_mode; | ||||
int throttle_remaining; | ||||
} flickcurl_group; | } flickcurl_group; | |||
/** | ||||
* flickcurl_category: | ||||
* @id: category ID | ||||
* @name: Name | ||||
* @path: path to category | ||||
* @count: count | ||||
* | ||||
* A category. | ||||
*/ | ||||
struct flickcurl_category_s { | ||||
char* id; | ||||
char* name; | ||||
char* path; | ||||
int count; | ||||
struct flickcurl_category_s** categories; | ||||
int categories_count; | ||||
flickcurl_group** groups; | ||||
int groups_count; | ||||
}; | ||||
typedef struct flickcurl_category_s flickcurl_category; | ||||
/* | /* | |||
* Fields of a flickcurl_person* | * Fields of a flickcurl_person* | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
PERSON_FIELD_none, | PERSON_FIELD_none, | |||
PERSON_FIELD_isadmin, /* boolean */ | PERSON_FIELD_isadmin, /* boolean */ | |||
PERSON_FIELD_ispro, /* boolean */ | PERSON_FIELD_ispro, /* boolean */ | |||
PERSON_FIELD_iconserver, /* integer */ | PERSON_FIELD_iconserver, /* integer */ | |||
PERSON_FIELD_iconfarm, /* integer - not in API docs */ | PERSON_FIELD_iconfarm, /* integer - not in API docs */ | |||
PERSON_FIELD_username, /* string */ | PERSON_FIELD_username, /* string */ | |||
skipping to change at line 386 | skipping to change at line 424 | |||
PERSON_FIELD_mbox_sha1sum, /* string */ | PERSON_FIELD_mbox_sha1sum, /* string */ | |||
PERSON_FIELD_location, /* string */ | PERSON_FIELD_location, /* string */ | |||
PERSON_FIELD_photosurl, /* string */ | PERSON_FIELD_photosurl, /* string */ | |||
PERSON_FIELD_profileurl, /* string */ | PERSON_FIELD_profileurl, /* string */ | |||
PERSON_FIELD_mobileurl, /* string - not in API docs */ | PERSON_FIELD_mobileurl, /* string - not in API docs */ | |||
PERSON_FIELD_photos_firstdate, /* dateTime */ | PERSON_FIELD_photos_firstdate, /* dateTime */ | |||
PERSON_FIELD_photos_firstdatetaken, /* dateTime */ | PERSON_FIELD_photos_firstdatetaken, /* dateTime */ | |||
PERSON_FIELD_photos_count, /* integer */ | PERSON_FIELD_photos_count, /* integer */ | |||
PERSON_FIELD_photos_views, /* integer - not in API docs */ | PERSON_FIELD_photos_views, /* integer - not in API docs */ | |||
PERSON_FIELD_favedate, /* dateTime - flickr.photos.getFavori tes() */ | PERSON_FIELD_favedate, /* dateTime - flickr.photos.getFavori tes() */ | |||
PERSON_FIELD_FIRST = PERSON_FIELD_isadmin, | ||||
PERSON_FIELD_LAST = PERSON_FIELD_favedate | PERSON_FIELD_LAST = PERSON_FIELD_favedate | |||
} flickcurl_person_field_type; | } flickcurl_person_field_type; | |||
typedef struct { | typedef struct { | |||
char* string; | char* string; | |||
flickcurl_person_field_type integer; | flickcurl_person_field_type integer; | |||
flickcurl_field_value_type type; | flickcurl_field_value_type type; | |||
} flickcurl_person_field; | } flickcurl_person_field; | |||
/** | /** | |||
skipping to change at line 502 | skipping to change at line 541 | |||
int safe_search; | int safe_search; | |||
int content_type; | int content_type; | |||
char* machine_tags; | char* machine_tags; | |||
char* machine_tag_mode; | char* machine_tag_mode; | |||
char* group_id; | char* group_id; | |||
char* extras; | char* extras; | |||
int per_page; | int per_page; | |||
int page; | int page; | |||
} flickcurl_search_params; | } flickcurl_search_params; | |||
/** | ||||
* flickcurl_photoset: | ||||
* @id: photoset ID | ||||
* @primary: primary photo ID | ||||
* @secret: secret | ||||
* @server: server | ||||
* @farm: farm | ||||
* @photos_count: count of photos in set | ||||
* @title: title of photoset | ||||
* @description: description of photoset (may be NULL) | ||||
* | ||||
* A photoset. | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
char *id; | ||||
char *primary; | ||||
char *secret; | ||||
int server; | ||||
int farm; | ||||
int photos_count; | ||||
char* title; | ||||
char *description; | ||||
} flickcurl_photoset; | ||||
/** | ||||
* flickcurl_size: | ||||
* @label: label | ||||
* @width: width in pixels | ||||
* @height: height in pixels | ||||
* @source: raw image source URL | ||||
* @url: url of photo page | ||||
* | ||||
* A photo at a size. | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
char *label; | ||||
int width; | ||||
int height; | ||||
char *source; | ||||
char *url; | ||||
} flickcurl_size; | ||||
/** | ||||
* flickcurl_ticket: | ||||
* @id: ticket ID | ||||
* @photoID: photoID | ||||
* @complete: complete flag | ||||
* @invalid: invalid flag | ||||
* | ||||
* An aysnchronous photo upload ticket. | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
int id; | ||||
int photoid; | ||||
int complete; | ||||
int invalid; | ||||
} flickcurl_ticket; | ||||
/** | ||||
* flickcurl_user_upload_status: | ||||
* @username: user name | ||||
* @bandwidth_maxbytes: max bytes | ||||
* @bandwidth_maxkb: max kbytes | ||||
* @bandwidth_usedbytes: used bytes | ||||
* @bandwidth_usedkb: used kbytes | ||||
* @bandwidth_remainingbytes: remaining bytes | ||||
* @bandwidth_remainingkb: remaining kbytes | ||||
* @filesize_maxbytes: max file size in bytes | ||||
* @filesize_maxkb: max file size in kbytes | ||||
* @sets_created: number of sets created | ||||
* @sets_remaining: remaining sets: 0, 1, 2, 3 or "lots" | ||||
* | ||||
* A user's upload status | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
char* username; | ||||
int bandwidth_maxbytes; | ||||
int bandwidth_maxkb; | ||||
int bandwidth_usedbytes; | ||||
int bandwidth_usedkb; | ||||
int bandwidth_remainingbytes; | ||||
int bandwidth_remainingkb; | ||||
int filesize_maxbytes; | ||||
int filesize_maxkb; | ||||
int sets_created; | ||||
char* sets_remaining; | ||||
} flickcurl_user_upload_status; | ||||
/* callback handlers */ | /* callback handlers */ | |||
typedef void (*flickcurl_message_handler)(void *user_data, const char *mess age); | typedef void (*flickcurl_message_handler)(void *user_data, const char *mess age); | |||
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 */ | |||
extern const char* const flickcurl_short_copyright_string; | extern const char* const flickcurl_short_copyright_string; | |||
extern const char* const flickcurl_copyright_string; | extern const char* const flickcurl_copyright_string; | |||
extern const char* const flickcurl_license_string; | extern const char* const flickcurl_license_string; | |||
extern const char* const flickcurl_home_url_string; | extern const char* const flickcurl_home_url_string; | |||
extern const char* const flickcurl_version_string; | extern const char* const flickcurl_version_string; | |||
skipping to change at line 548 | skipping to change at line 681 | |||
/* flickcurl* object set methods */ | /* flickcurl* object set methods */ | |||
const char* flickcurl_get_api_key(flickcurl *fc); | const char* flickcurl_get_api_key(flickcurl *fc); | |||
const char* flickcurl_get_shared_secret(flickcurl *fc); | const char* flickcurl_get_shared_secret(flickcurl *fc); | |||
const char* flickcurl_get_auth_token(flickcurl *fc); | const char* flickcurl_get_auth_token(flickcurl *fc); | |||
/* other flickcurl class destructors */ | /* other flickcurl class destructors */ | |||
void flickcurl_free_tag(flickcurl_tag *t); | void flickcurl_free_tag(flickcurl_tag *t); | |||
void flickcurl_free_photo(flickcurl_photo *photo); | void flickcurl_free_photo(flickcurl_photo *photo); | |||
void flickcurl_free_photos(flickcurl_photo** photos); | void flickcurl_free_photos(flickcurl_photo** photos); | |||
void flickcurl_free_photoset(flickcurl_photoset *photoset); | ||||
void flickcurl_free_photosets(flickcurl_photoset **photosets_object); | ||||
/* void flickcurl_free_license(flickcurl_person *license); */ | /* void flickcurl_free_license(flickcurl_person *license); */ | |||
void flickcurl_free_person(flickcurl_person *person); | void flickcurl_free_person(flickcurl_person *person); | |||
void flickcurl_free_persons(flickcurl_person** persons); | void flickcurl_free_persons(flickcurl_person** persons); | |||
void flickcurl_free_context(flickcurl_context *context); | void flickcurl_free_context(flickcurl_context *context); | |||
void flickcurl_free_contexts(flickcurl_context** contexts); | void flickcurl_free_contexts(flickcurl_context** contexts); | |||
void flickcurl_free_perms(flickcurl_perms *perms); | void flickcurl_free_perms(flickcurl_perms *perms); | |||
void flickcurl_free_location(flickcurl_location *location); | void flickcurl_free_location(flickcurl_location *location); | |||
void flickcurl_free_exif(flickcurl_exif *exif); | void flickcurl_free_exif(flickcurl_exif *exif); | |||
void flickcurl_free_exifs(flickcurl_exif **exifs_object); | void flickcurl_free_exifs(flickcurl_exif **exifs_object); | |||
void flickcurl_free_ticket(flickcurl_ticket *ticket); | ||||
void flickcurl_free_tickets(flickcurl_ticket **tickets_object); | ||||
void flickcurl_free_user_upload_status(flickcurl_user_upload_status *u); | ||||
/* utility methods */ | /* utility methods */ | |||
/* get an image URL for a photo in some size */ | /* get an image URL for a photo in some size */ | |||
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 */ | |||
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); | |||
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); | |||
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); | |||
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); | |||
skipping to change at line 580 | skipping to change at line 718 | |||
/* Flickr API calls */ | /* Flickr API calls */ | |||
/* flickr.auth */ | /* flickr.auth */ | |||
char* flickcurl_auth_checkToken(flickcurl* fc, const char* token); | char* flickcurl_auth_checkToken(flickcurl* fc, const char* token); | |||
char* flickcurl_auth_getFrob(flickcurl* fc); | char* flickcurl_auth_getFrob(flickcurl* fc); | |||
char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob); | char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob); | |||
char* flickcurl_auth_getToken(flickcurl* fc, const char* frob); | char* flickcurl_auth_getToken(flickcurl* fc, const char* frob); | |||
/* flickr.groups */ | /* flickr.groups */ | |||
void flickcurl_free_category(flickcurl_category *category); | ||||
void flickcurl_free_categories(flickcurl_category **categories_object); | ||||
flickcurl_category* flickcurl_groups_browse(flickcurl* fc, int cat_id); | ||||
flickcurl_group* flickcurl_groups_getInfo(flickcurl* fc, const char* group_ | ||||
id, const char* lang); | ||||
flickcurl_group** flickcurl_groups_search(flickcurl* fc, const char* text, | ||||
int per_page, int page); | ||||
/* flickr.groups.pools */ | ||||
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_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_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_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); | |||
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); | |||
void flickcurl_free_group(flickcurl_group *group); | void flickcurl_free_group(flickcurl_group *group); | |||
void flickcurl_free_groups(flickcurl_group **groups_object); | void flickcurl_free_groups(flickcurl_group **groups_object); | |||
/* flickr.interestingness */ | ||||
flickcurl_photo** flickcurl_interestingness_getList(flickcurl* fc, const ch | ||||
ar* date, const char* extras, int per_page, int page); | ||||
/* flickr.photo.getSizes */ | ||||
void flickcurl_free_size(flickcurl_size *size); | ||||
void flickcurl_free_sizes(flickcurl_size **sizes_object); | ||||
/* flickr.people */ | /* flickr.people */ | |||
char* flickcurl_people_findByEmail(flickcurl* fc, const char* email); | char* flickcurl_people_findByEmail(flickcurl* fc, const char* email); | |||
char* flickcurl_people_findByUsername(flickcurl* fc, const char* username); | char* flickcurl_people_findByUsername(flickcurl* fc, const char* username); | |||
flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id); | flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id); | |||
flickcurl_group** flickcurl_people_getPublicGroups(flickcurl* fc, const cha r* user_id); | ||||
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_user_upload_status* flickcurl_people_getUploadStatus(flickcurl* f c); | ||||
/* flickr.photos */ | /* flickr.photos */ | |||
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); | |||
int flickcurl_photos_delete(flickcurl* fc, const char* photo_id); | int flickcurl_photos_delete(flickcurl* fc, const char* photo_id); | |||
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_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_photo** flickcurl_photos_getContactsPublicPhotos(flickcurl* fc, c onst char* user_id, int count, int just_friends, int single_photo, int inc lude_self, const char* extras); | flickcurl_photo** flickcurl_photos_getContactsPublicPhotos(flickcurl* fc, c onst char* user_id, int count, int just_friends, int single_photo, int inc lude_self, const char* extras); | |||
flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char* photo_id); | flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char* photo_id); | |||
int** flickcurl_photos_getCounts(flickcurl* fc, const char** dates_array, c onst char** taken_dates_array); | ||||
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_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_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id); | flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id); | |||
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_perms* flickcurl_photos_getPerms(flickcurl* fc, const char* photo _id); | flickcurl_perms* flickcurl_photos_getPerms(flickcurl* fc, const char* photo _id); | |||
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_size** flickcurl_photos_getSizes(flickcurl* fc, const char* photo _id); | ||||
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_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_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_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); | |||
int flickcurl_photos_removeTag(flickcurl* fc, const char* tag_id); | int flickcurl_photos_removeTag(flickcurl* fc, const char* tag_id); | |||
flickcurl_photo** flickcurl_photos_search(flickcurl* fc, flickcurl_search_p arams* params); | flickcurl_photo** flickcurl_photos_search(flickcurl* fc, flickcurl_search_p arams* params); | |||
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); | |||
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); | |||
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); | |||
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); | |||
skipping to change at line 652 | skipping to change at line 808 | |||
/* flickr.photos.licenses */ | /* flickr.photos.licenses */ | |||
flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc); | flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc); | |||
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); | |||
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 */ | |||
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); | |||
int flickcurl_photos_notes_delete(flickcurl* fc, const char* note_id); | int flickcurl_photos_notes_delete(flickcurl* fc, const char* note_id); | |||
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); | |||
/* flickr.photos.upload */ | ||||
flickcurl_ticket** flickcurl_photos_upload_checkTickets(flickcurl* fc, cons | ||||
t char** tickets_ids); | ||||
/* flickr.photos.transform */ | ||||
int flickcurl_photos_transform_rotate(flickcurl* fc, const char* photo_id, | ||||
int degrees); | ||||
/* flickr.photosets */ | /* flickr.photosets */ | |||
int flickcurl_photosets_addPhoto(flickcurl* fc, const char* photoset_id, co | ||||
nst char* photo_id); | ||||
char* flickcurl_photosets_create(flickcurl* fc, const char* title, const ch | ||||
ar* description, const char* primary_photo_id, char** photoset_url_p); | ||||
int flickcurl_photosets_delete(flickcurl* fc, const char* photoset_id); | ||||
int flickcurl_photosets_editMeta(flickcurl* fc, const char* photoset_id, co | ||||
nst char* title, const char* description); | ||||
int flickcurl_photosets_editPhotos(flickcurl* fc, const char* photoset_id, | ||||
const char* primary_photo_id, const char** photo_ids_array); | ||||
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_photoset* flickcurl_photosets_getInfo(flickcurl* fc, const char* | ||||
photoset_id); | ||||
flickcurl_photoset** flickcurl_photosets_getList(flickcurl* fc, const char* | ||||
user_id); | ||||
flickcurl_photo** flickcurl_photosets_getPhotos(flickcurl* fc, const char* | ||||
photoset_id, const char* extras, int privacy_filter, int per_page, int page | ||||
); | ||||
int flickcurl_photosets_orderSets(flickcurl* fc, const char** photoset_ids_ | ||||
array); | ||||
int flickcurl_photosets_removePhoto(flickcurl* fc, const char* photoset_id, | ||||
const char* photo_id); | ||||
/* flickr.photosets.comments */ | /* flickr.photosets.comments */ | |||
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); | |||
int flickcurl_photosets_comments_deleteComment(flickcurl* fc, const char* c omment_id); | int flickcurl_photosets_comments_deleteComment(flickcurl* fc, const char* c omment_id); | |||
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_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.reflection */ | /* flickr.reflection */ | |||
void flickcurl_free_method(flickcurl_method *method); | void flickcurl_free_method(flickcurl_method *method); | |||
char** flickcurl_reflection_getMethods(flickcurl* fc); | char** flickcurl_reflection_getMethods(flickcurl* fc); | |||
skipping to change at line 691 | skipping to change at line 863 | |||
char* flickcurl_urls_lookupGroup(flickcurl* fc, const char* url); | char* flickcurl_urls_lookupGroup(flickcurl* fc, const char* url); | |||
char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url); | char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url); | |||
/* Upload API */ | /* Upload 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_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_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); | |||
void flickcurl_free_upload_status(flickcurl_upload_status* status); | void flickcurl_free_upload_status(flickcurl_upload_status* status); | |||
FLICKCURL_DEPRECATED void flickcurl_upload_status_free(flickcurl_upload_sta tus* status); | FLICKCURL_DEPRECATED void flickcurl_upload_status_free(flickcurl_upload_sta tus* status); | |||
char* flickcurl_array_join(const char *array[], char delim); | ||||
char** flickcurl_array_split(const char *str, char delim); | ||||
void flickcurl_array_free(char *array[]); | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 22 change blocks. | ||||
0 lines changed or deleted | 191 lines changed or added | |||