flickcurl.h   flickcurl.h 
skipping to change at line 111 skipping to change at line 111
typedef struct { typedef struct {
/* license id */ /* license id */
int id; int id;
/* license url or NULL if none */ /* license url or NULL if none */
char *url; char *url;
/* license name */ /* license name */
char *name; char *name;
} flickcurl_license; } flickcurl_license;
typedef enum { typedef enum {
FLICKCURL_CONTEXT_NONE,
FLICKCURL_CONTEXT_SET,
FLICKCURL_CONTEXT_POOL,
FLICKCURL_CONTEXT_PREV,
FLICKCURL_CONTEXT_NEXT,
FLICKCURL_CONTEXT_LAST = FLICKCURL_CONTEXT_NEXT
} flickcurl_context_type;
typedef struct flickcurl_context_s {
flickcurl_context_type type;
char* id;
char* secret; /* may be NULL */
int server; /* may be 0 */
int farm; /* may be 0 */
char* title; /* may be NULL */
char* url; /* may be NULL */
char* thumb; /* may be NULL */
} flickcurl_context;
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 */
PERSON_FIELD_realname, /* string */ PERSON_FIELD_realname, /* string */
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 */
skipping to change at line 179 skipping to change at line 199
void flickcurl_set_sig_key(flickcurl *fc, const char* sig_key); void flickcurl_set_sig_key(flickcurl *fc, const char* sig_key);
/* get methods */ /* get 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);
const char* flickcurl_get_photo_field_label(flickcurl_photo_field field); const char* flickcurl_get_photo_field_label(flickcurl_photo_field field);
const char* flickcurl_get_person_field_label(flickcurl_person_field field); const char* flickcurl_get_person_field_label(flickcurl_person_field field);
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);
/* utility methods */ /* utility methods */
char* flickcurl_photo_as_source_uri(flickcurl_photo *photo, const char c); char* flickcurl_photo_as_source_uri(flickcurl_photo *photo, const char c);
/* Flickr API calls */ /* Flickr API calls */
char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob); char* flickcurl_auth_getFullToken(flickcurl* fc, const char* frob);
flickcurl_context** flickcurl_groups_pools_getContext(flickcurl* fc, const
char* photo_id, const char* group_id);
flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id); flickcurl_person* flickcurl_people_getInfo(flickcurl* fc, const char* user_ id);
flickcurl_context** flickcurl_photos_getAllContexts(flickcurl* fc, const ch
ar* photo_id);
flickcurl_context** flickcurl_photos_getContext(flickcurl* fc, const char*
photo_id);
flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id); flickcurl_photo* flickcurl_photos_getInfo(flickcurl *fc, const char* photo_ id);
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);
flickcurl_context** flickcurl_photosets_getContext(flickcurl* fc, const cha
r* photo_id, const char* photoset_id);
int flickcurl_test_echo(flickcurl* fc, const char* key, const char* value); int flickcurl_test_echo(flickcurl* fc, const char* key, const char* value);
char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url); char* flickcurl_urls_lookupUser(flickcurl* fc, const char* url);
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_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_context(flickcurl_context *context);
void flickcurl_free_contexts(flickcurl_context** contexts);
/* config.c */ /* config.c */
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);
 End of changes. 6 change blocks. 
0 lines changed or deleted 33 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/