flickcurl.h | flickcurl.h | |||
---|---|---|---|---|
skipping to change at line 238 | skipping to change at line 238 | |||
* 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; | |||
/* Forward structure references */ | /* Forward structure references */ | |||
struct flickcurl_s; | struct flickcurl_s; | |||
struct flickcurl_photo_s; | struct flickcurl_photo_s; | |||
struct flickcurl_shapedata_s; | ||||
/** | /** | |||
* flickcurl_arg: | * flickcurl_arg: | |||
* @name: Argument name | * @name: Argument name | |||
* @optional: boolean flag (non-0 true) if argument is optional | * @optional: boolean flag (non-0 true) if argument is optional | |||
* @description: description of argument (HTML) | * @description: description of argument (HTML) | |||
* | * | |||
* An API method argument. | * An API method argument. | |||
*/ | */ | |||
typedef struct flickcurl_arg_s { | typedef struct flickcurl_arg_s { | |||
skipping to change at line 435 | skipping to change at line 436 | |||
* A machine tag predicate-value pair | * A machine tag predicate-value pair | |||
*/ | */ | |||
typedef struct { | typedef struct { | |||
int usage_count; | int usage_count; | |||
char *predicate; | char *predicate; | |||
int used_in_namespace_count; | int used_in_namespace_count; | |||
char *value; | char *value; | |||
} flickcurl_tag_predicate_value; | } flickcurl_tag_predicate_value; | |||
/** | /** | |||
* flickcurl_institution: | ||||
* @nsid: NSID | ||||
* @date_launch: Date launched in unix timestamp format | ||||
* @name: Institution name | ||||
* @urls: Array of related urls. | ||||
* | ||||
* Flickr Commons institution | ||||
* | ||||
*/ | ||||
typedef struct { | ||||
char *nsid; | ||||
int date_launch; | ||||
char *name; | ||||
char **urls; | ||||
} flickcurl_institution; | ||||
/** | ||||
* flickcurl_institution_url_type: | ||||
* @FLICKCURL_INSTITUTION_URL_NONE: internal | ||||
* @FLICKCURL_INSTITUTION_URL_SITE: site URL | ||||
* @FLICKCURL_INSTITUTION_URL_LICENSE: license URL | ||||
* @FLICKCURL_INSTITUTION_URL_FLICKR: flickr photos page URL | ||||
* @FLICKCURL_INSTITUTION_URL_LAST: internal offset to last in enum list | ||||
* | ||||
* Institution URL type | ||||
*/ | ||||
typedef enum { | ||||
FLICKCURL_INSTITUTION_URL_NONE = 0, | ||||
FLICKCURL_INSTITUTION_URL_SITE, | ||||
FLICKCURL_INSTITUTION_URL_LICENSE, | ||||
FLICKCURL_INSTITUTION_URL_FLICKR, | ||||
FLICKCURL_INSTITUTION_URL_LAST = FLICKCURL_INSTITUTION_URL_FLICKR | ||||
} flickcurl_institution_url_type; | ||||
/** | ||||
* flickcurl_location: | * flickcurl_location: | |||
* @latitude: The latitude from -90 to 90 | * @latitude: The latitude from -90 to 90 | |||
* @longitude: The longitude from -180 to 180 | * @longitude: The longitude from -180 to 180 | |||
* @accuracy: Recorded accuracy level of the location. | * @accuracy: Recorded accuracy level of the location. | |||
* World level is 1, Country is ~3, Region ~6, City ~11, Street | * World level is 1, Country is ~3, Region ~6, City ~11, Street | |||
* ~16. Current range is 1-16. (<0 for unknown accuracy) | * ~16. Current range is 1-16. (<0 for unknown accuracy) | |||
* | * | |||
* A Location in the world with an optional accuracy | * A Location in the world with an optional accuracy | |||
*/ | */ | |||
typedef struct { | typedef struct { | |||
skipping to change at line 458 | skipping to change at line 494 | |||
} flickcurl_location; | } flickcurl_location; | |||
/** | /** | |||
* flickcurl_place_type: | * flickcurl_place_type: | |||
* @FLICKCURL_PLACE_LOCATION: a general location | * @FLICKCURL_PLACE_LOCATION: a general location | |||
* @FLICKCURL_PLACE_NEIGHBOURHOOD: neighborhood (narrowest place) | * @FLICKCURL_PLACE_NEIGHBOURHOOD: neighborhood (narrowest place) | |||
* @FLICKCURL_PLACE_NEIGHBORHOOD: deprecated | * @FLICKCURL_PLACE_NEIGHBORHOOD: deprecated | |||
* @FLICKCURL_PLACE_LOCALITY: locality | * @FLICKCURL_PLACE_LOCALITY: locality | |||
* @FLICKCURL_PLACE_COUNTY: county | * @FLICKCURL_PLACE_COUNTY: county | |||
* @FLICKCURL_PLACE_REGION: region | * @FLICKCURL_PLACE_REGION: region | |||
* @FLICKCURL_PLACE_COUNTRY: country (widest place) | * @FLICKCURL_PLACE_COUNTRY: country | |||
* @FLICKCURL_PLACE_CONTINENT: continent (widest place) (Flickcurl 1.8) | ||||
* @FLICKCURL_PLACE_LAST: internal offset to last in enum list | * @FLICKCURL_PLACE_LAST: internal offset to last in enum list | |||
* | * | |||
* Place type | * Place type | |||
*/ | */ | |||
typedef enum { | typedef enum { | |||
FLICKCURL_PLACE_LOCATION, | FLICKCURL_PLACE_LOCATION, | |||
FLICKCURL_PLACE_NEIGHBOURHOOD, | FLICKCURL_PLACE_NEIGHBOURHOOD, | |||
FLICKCURL_PLACE_NEIGHBORHOOD = FLICKCURL_PLACE_NEIGHBOURHOOD, | FLICKCURL_PLACE_NEIGHBORHOOD = FLICKCURL_PLACE_NEIGHBOURHOOD, | |||
FLICKCURL_PLACE_LOCALITY, | FLICKCURL_PLACE_LOCALITY, | |||
FLICKCURL_PLACE_COUNTY, | FLICKCURL_PLACE_COUNTY, | |||
FLICKCURL_PLACE_REGION, | FLICKCURL_PLACE_REGION, | |||
FLICKCURL_PLACE_COUNTRY, | FLICKCURL_PLACE_COUNTRY, | |||
FLICKCURL_PLACE_LAST = FLICKCURL_PLACE_COUNTRY | FLICKCURL_PLACE_CONTINENT, | |||
FLICKCURL_PLACE_LAST = FLICKCURL_PLACE_CONTINENT | ||||
} flickcurl_place_type; | } flickcurl_place_type; | |||
/** | /** | |||
* flickcurl_place_type_info: | ||||
* @type: type enum ID | ||||
* @id: web service call ID | ||||
* @name: name | ||||
* | ||||
* Place type information | ||||
*/ | ||||
typedef struct { | ||||
flickcurl_place_type type; | ||||
int id; | ||||
char *name; | ||||
} flickcurl_place_type_info; | ||||
/** | ||||
* 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 | * @woe_ids: Array of WOE IDs | |||
* @location: location for this place | * @location: location for this place | |||
* @count: count of photos (when used for flickcurl_places_placesForUser() ) | * @count: count of photos (when used for flickcurl_places_placesForUser() ) | |||
* @shapedata: XML string of <shapedata> element and content elements | * @shapedata: DEPRECATED for @shape->data: XML string of <shapedata> | |||
when present (or NULL) | element and content elements when present (or NULL) | |||
* @shapedata_length: size of @shapedate string | * @shapedata_length: DEPRECATED for @shape->data_length: size of @shapedat | |||
* @shapefile_urls: NULL-terminated array of pointers to shapefile URLs whe | e string | |||
n present (or NULL) | * @shapefile_urls: DEPRECATED for @shape->file_urls: NULL-terminated array | |||
* @shapefile_urls_count: number of entries in @shapefile_urls array | of pointers to shapefile URLs when present (or NULL) | |||
* @shapefile_urls_count: DEPRECATED for @shape->file_urls_count: number of | ||||
entries in @shapefile_urls array | ||||
* @shape: shapefile data (inline data and shapefile urls) | ||||
* | * | |||
* 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]; | char* woe_ids[FLICKCURL_PLACE_LAST+1]; | |||
flickcurl_location location; | flickcurl_location location; | |||
int count; | int count; | |||
/* shapefile fields */ | /* DEPRECATED shapefile fields; now are pointers into @shape */ | |||
char* shapedata; | char* shapedata; | |||
size_t shapedata_length; | size_t shapedata_length; | |||
char** shapefile_urls; | char** shapefile_urls; | |||
int shapefile_urls_count; | int shapefile_urls_count; | |||
struct flickcurl_shapedata_s* shape; | ||||
} flickcurl_place; | } flickcurl_place; | |||
/** | /** | |||
* flickcurl_shapedata: | ||||
* @created: creation date as a UNIX timestamp | ||||
* @alpha: Alpha value | ||||
* @points: Number of points | ||||
* @edges: Number of edges | ||||
* @data: XML string of <shapedata> element and content elements when | ||||
present (or NULL) | ||||
* @data_length: size of @shapedate string | ||||
* @file_urls: NULL-terminated array of pointers to shapefile URLs when pre | ||||
sent (or NULL) | ||||
* @file_urls_count: number of entries in @shapefile_urls array | ||||
* | ||||
* Shape data for a place. | ||||
* | ||||
**/ | ||||
typedef struct flickcurl_shapedata_s { | ||||
int created; | ||||
double alpha; | ||||
int points; | ||||
int edges; | ||||
char* data; | ||||
size_t data_length; | ||||
char** file_urls; | ||||
int file_urls_count; | ||||
} flickcurl_shapedata; | ||||
/** | ||||
* 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) | |||
* @machine_tag: boolean (non-0 true) if tag is a Machine Tag | * @machine_tag: boolean (non-0 true) if tag is a Machine Tag | |||
* @count: tag count in a histogram (or 0) | * @count: tag count in a histogram (or 0) | |||
* | * | |||
skipping to change at line 656 | skipping to change at line 736 | |||
/** | /** | |||
* flickcurl_contact: | * flickcurl_contact: | |||
* @nsid: NSID | * @nsid: NSID | |||
* @username: user name | * @username: user name | |||
* @iconserver: icon server | * @iconserver: icon server | |||
* @realname: real name | * @realname: real name | |||
* @is_friend: is friend boolean | * @is_friend: is friend boolean | |||
* @is_family: is family boolean | * @is_family: is family boolean | |||
* @ignored: ignored | * @ignored: ignored | |||
* @uploaded: count of number of photos uploaded (for flickcurl_contacts_ge tListRecentlyUploaded() ) | ||||
* | * | |||
* A contact. | * A contact. | |||
*/ | */ | |||
typedef struct flickcurl_contact_s { | typedef struct flickcurl_contact_s { | |||
char *nsid; | char *nsid; | |||
char *username; | char *username; | |||
int iconserver; | int iconserver; | |||
char *realname; | char *realname; | |||
int is_friend; | int is_friend; | |||
int is_family; | int is_family; | |||
int ignored; | int ignored; | |||
int uploaded; | ||||
} flickcurl_contact; | } flickcurl_contact; | |||
/** | /** | |||
* flickcurl_context_type: | * flickcurl_context_type: | |||
* @FLICKCURL_CONTEXT_SET: context is a set | * @FLICKCURL_CONTEXT_SET: context is a set | |||
* @FLICKCURL_CONTEXT_POOL: context is a pool | * @FLICKCURL_CONTEXT_POOL: context is a pool | |||
* @FLICKCURL_CONTEXT_PREV: context is a previous photo | * @FLICKCURL_CONTEXT_PREV: context is a previous photo | |||
* @FLICKCURL_CONTEXT_NEXT: context is a next photo | * @FLICKCURL_CONTEXT_NEXT: context is a next photo | |||
* @FLICKCURL_CONTEXT_NONE: internal | * @FLICKCURL_CONTEXT_NONE: internal | |||
* @FLICKCURL_CONTEXT_LAST: internal offset to last in enum list | * @FLICKCURL_CONTEXT_LAST: internal offset to last in enum list | |||
skipping to change at line 1294 | skipping to change at line 1376 | |||
/* void flickcurl_free_license(flickcurl_person *license); */ | /* void flickcurl_free_license(flickcurl_person *license); */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_person(flickcurl_person *person); | void flickcurl_free_person(flickcurl_person *person); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_persons(flickcurl_person** persons); | void flickcurl_free_persons(flickcurl_person** persons); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_context(flickcurl_context *context); | void flickcurl_free_context(flickcurl_context *context); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_contexts(flickcurl_context** contexts); | void flickcurl_free_contexts(flickcurl_context** contexts); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_institution(flickcurl_institution *institution); | ||||
FLICKCURL_API | ||||
void flickcurl_free_institutions(flickcurl_institution **institutions_objec | ||||
t); | ||||
FLICKCURL_API | ||||
void flickcurl_free_perms(flickcurl_perms *perms); | void flickcurl_free_perms(flickcurl_perms *perms); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_location(flickcurl_location *location); | void flickcurl_free_location(flickcurl_location *location); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_exif(flickcurl_exif *exif); | void flickcurl_free_exif(flickcurl_exif *exif); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_exifs(flickcurl_exif **exifs_object); | void flickcurl_free_exifs(flickcurl_exif **exifs_object); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_ticket(flickcurl_ticket *ticket); | void flickcurl_free_ticket(flickcurl_ticket *ticket); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_tickets(flickcurl_ticket **tickets_object); | void flickcurl_free_tickets(flickcurl_ticket **tickets_object); | |||
FLICKCURL_API | 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 | FLICKCURL_API | |||
void flickcurl_free_place(flickcurl_place* place); | void flickcurl_free_place(flickcurl_place* place); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_places(flickcurl_place** places_object); | void flickcurl_free_places(flickcurl_place** places_object); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_place_type_infos(flickcurl_place_type_info **ptis_objec | ||||
t); | ||||
FLICKCURL_API | ||||
void flickcurl_free_shape(flickcurl_shapedata *shape); | ||||
FLICKCURL_API | ||||
void flickcurl_free_shapes(flickcurl_shapedata **shapes_object); | ||||
FLICKCURL_API | ||||
void flickcurl_free_video(flickcurl_video *video); | void flickcurl_free_video(flickcurl_video *video); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_tag_predicate_value(flickcurl_tag_predicate_value* tag_ pv); | void flickcurl_free_tag_predicate_value(flickcurl_tag_predicate_value* tag_ pv); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_tag_predicate_values(flickcurl_tag_predicate_value **ta g_pvs); | void flickcurl_free_tag_predicate_values(flickcurl_tag_predicate_value **ta g_pvs); | |||
/* 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 | 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); | |||
skipping to change at line 1389 | skipping to change at line 1481 | |||
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_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); | |||
/* flickr.commons */ | ||||
FLICKCURL_API | ||||
flickcurl_institution** flickcurl_commons_getInstitutions(flickcurl* fc); | ||||
const char* flickcurl_get_institution_url_type_label(flickcurl_institution_ | ||||
url_type url_type); | ||||
/* flickr.favorites */ | /* flickr.favorites */ | |||
FLICKCURL_API | 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_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_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 | |||
skipping to change at line 1548 | skipping to change at line 1645 | |||
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.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_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_API FLICKCURL_DEPRECATED | ||||
flickcurl_place* flickcurl_places_getInfo(flickcurl* fc, const char* place_ id, const char* woe_id); | flickcurl_place* flickcurl_places_getInfo(flickcurl* fc, const char* place_ id, const char* woe_id); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_place* flickcurl_places_getInfo2(flickcurl* fc, const char* place | ||||
_id, const int woe_id); | ||||
FLICKCURL_API | ||||
flickcurl_place* flickcurl_places_getInfoByUrl(flickcurl* fc, const char* u rl); | flickcurl_place* flickcurl_places_getInfoByUrl(flickcurl* fc, const char* u rl); | |||
FLICKCURL_API | 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_API | |||
flickcurl_place* flickcurl_places_resolvePlaceURL(flickcurl* fc, const char * url); | flickcurl_place* flickcurl_places_resolvePlaceURL(flickcurl* fc, const char * url); | |||
FLICKCURL_API | 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); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_place_type_info** flickcurl_places_getPlaceTypes(flickcurl* fc); | ||||
FLICKCURL_API | ||||
flickcurl_shapedata** flickcurl_places_getShapeHistory(flickcurl* fc, const | ||||
char* place_id, int woe_id); | ||||
FLICKCURL_API | ||||
flickcurl_place** flickcurl_places_placesForBoundingBox(flickcurl* fc, flic | ||||
kcurl_place_type place_type, double minimum_longitude, double minimum_latit | ||||
ude, double maximum_longitude, double maximum_latitude); | ||||
FLICKCURL_API | ||||
flickcurl_place** flickcurl_places_placesForContacts(flickcurl* fc, flickcu | ||||
rl_place_type place_type, int woe_id, const char* place_id, int threshold, | ||||
const char* contacts, int min_upload_date, int max_upload_date, int min_tak | ||||
en_date, int max_taken_date); | ||||
FLICKCURL_API | ||||
int flickcurl_places_placesForTags(flickcurl* fc, flickcurl_place_type plac | ||||
e_type, int woe_id, const char* place_id, const char* threshold, const char | ||||
* tags, const char* tag_mode, const char* machine_tags, const char* machine | ||||
_tag_mode, const char* min_upload_date, const char* max_upload_date, const | ||||
char* min_taken_date, const char* max_taken_date); | ||||
FLICKCURL_API | ||||
flickcurl_place** flickcurl_places_placesForUser(flickcurl* fc, flickcurl_p lace_type place_type, int woe_id, const char* place_id, int threshold); | flickcurl_place** flickcurl_places_placesForUser(flickcurl* fc, flickcurl_p lace_type place_type, int woe_id, const char* place_id, int threshold); | |||
FLICKCURL_API FLICKCURL_DEPRECATED | FLICKCURL_API FLICKCURL_DEPRECATED | |||
flickcurl_place** flickcurl_places_forUser(flickcurl* fc, flickcurl_place_t ype place_type, int woe_id, const char* place_id, int threshold); | flickcurl_place** flickcurl_places_forUser(flickcurl* fc, flickcurl_place_t ype place_type, int woe_id, const char* place_id, int threshold); | |||
FLICKCURL_API | ||||
flickcurl_tag** flickcurl_places_tagsForPlace(flickcurl* fc, int woe_id, co | ||||
nst char* place_id, int min_upload_date, int max_upload_date, int min_taken | ||||
_date, int max_taken_date); | ||||
int flickcurl_place_type_to_id(flickcurl_place_type place_type); | ||||
flickcurl_place_type flickcurl_place_id_to_type(int place_type_id); | ||||
/* flickr.contacts */ | /* flickr.contacts */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_contact(flickcurl_contact *contact_object); | void flickcurl_free_contact(flickcurl_contact *contact_object); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_contacts(flickcurl_contact **contacts_object); | void flickcurl_free_contacts(flickcurl_contact **contacts_object); | |||
FLICKCURL_API | 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_API | |||
flickcurl_contact** flickcurl_contacts_getListRecentlyUploaded(flickcurl* f | ||||
c, int date_lastupload, const char* filter); | ||||
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 | FLICKCURL_API | |||
void flickcurl_free_comment(flickcurl_comment *comment_object); | void flickcurl_free_comment(flickcurl_comment *comment_object); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_comments(flickcurl_comment **comments_object); | void flickcurl_free_comments(flickcurl_comment **comments_object); | |||
FLICKCURL_API | 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 | 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 | 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_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_API | |||
int flickcurl_photos_geo_batchCorrectLocation(flickcurl* fc, flickcurl_loca | ||||
tion* location, const char* place_id, int woe_id); | ||||
FLICKCURL_API | ||||
int flickcurl_photos_geo_correctLocation(flickcurl* fc, const char* photo_i | ||||
d, const char* place_id, int woe_id); | ||||
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_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 | FLICKCURL_API | |||
flickcurl_photos_list* flickcurl_photos_geo_photosForLocation_params(flickc | ||||
url* fc, flickcurl_location* location, flickcurl_photos_list_params* list_p | ||||
arams); | ||||
FLICKCURL_API | ||||
flickcurl_photo** flickcurl_photos_geo_photosForLocation(flickcurl* fc, fli | ||||
ckcurl_location* location, const char* extras, int per_page, int page); | ||||
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 | FLICKCURL_API | |||
int flickcurl_photos_geo_setContext(flickcurl* fc, const char* photo_id, in | ||||
t context); | ||||
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 | 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 | 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_API | |||
flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc); | flickcurl_license** flickcurl_photos_licenses_getInfo(flickcurl *fc); | |||
FLICKCURL_API | FLICKCURL_API | |||
skipping to change at line 1781 | skipping to change at line 1908 | |||
* | * | |||
* flickcurl_s | * flickcurl_s | |||
*/ | */ | |||
/** | /** | |||
* flickcurl_serializer_s: | * flickcurl_serializer_s: | |||
* | * | |||
* flickcurl_serializer_s | * flickcurl_serializer_s | |||
*/ | */ | |||
/** | ||||
* flickcurl_shapedata_s: | ||||
* | ||||
* flickcurl_shapedata_s | ||||
*/ | ||||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif | #endif | |||
End of changes. 24 change blocks. | ||||
10 lines changed or deleted | 171 lines changed or added | |||