flickcurl.h | flickcurl.h | |||
---|---|---|---|---|
/* -*- Mode: c; c-basic-offset: 2 -*- | /* -*- Mode: c; c-basic-offset: 2 -*- | |||
* | * | |||
* flickcurl.h - Flickcurl API | * flickcurl.h - Flickcurl API | |||
* | * | |||
* Copyright (C) 2007-2008, David Beckett http://www.dajobe.org/ | * Copyright (C) 2007-2009, David Beckett http://www.dajobe.org/ | |||
* | * | |||
* This file is licensed under the following three licenses as alternatives : | * This file is licensed under the following three licenses as alternatives : | |||
* 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version | * 1. GNU Lesser General Public License (LGPL) V2.1 or any newer version | |||
* 2. GNU General Public License (GPL) V2 or any newer version | * 2. GNU General Public License (GPL) V2 or any newer version | |||
* 3. Apache License, V2.0 or any newer version | * 3. Apache License, V2.0 or any newer version | |||
* | * | |||
* You may not use this file except in compliance with at least one of | * You may not use this file except in compliance with at least one of | |||
* the above three licenses. | * the above three licenses. | |||
* | * | |||
* See LICENSE.html or LICENSE.txt at the top of this package for the | * See LICENSE.html or LICENSE.txt at the top of this package for the | |||
skipping to change at line 1264 | skipping to change at line 1264 | |||
typedef struct flickcurl_serializer_s flickcurl_serializer; | typedef struct flickcurl_serializer_s flickcurl_serializer; | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_serializer* flickcurl_new_serializer(flickcurl* fc, void* data, f lickcurl_serializer_factory* factory); | flickcurl_serializer* flickcurl_new_serializer(flickcurl* fc, void* data, f lickcurl_serializer_factory* factory); | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_serializer(flickcurl_serializer* serializer); | void flickcurl_free_serializer(flickcurl_serializer* serializer); | |||
FLICKCURL_API | FLICKCURL_API | |||
int flickcurl_serialize_photo(flickcurl_serializer* fcs, flickcurl_photo* p hoto); | int flickcurl_serialize_photo(flickcurl_serializer* fcs, flickcurl_photo* p hoto); | |||
/** | ||||
* flickcurl_member: | ||||
* @nsid: NSID | ||||
* @username: User name | ||||
* @iconserver: icon server | ||||
* @iconfarm: icon farm | ||||
* @member_type: member type - 1: narwhal, 2: member, 3: moderator 4: admin | ||||
* | ||||
* Member in a group | ||||
*/ | ||||
typedef struct { | ||||
char *nsid; | ||||
char *username; | ||||
int iconserver; | ||||
int iconfarm; | ||||
int member_type; | ||||
} flickcurl_member; | ||||
/* callback handlers */ | /* callback handlers */ | |||
/** | /** | |||
* flickcurl_message_handler | * flickcurl_message_handler | |||
* @user_data: user data pointer | * @user_data: user data pointer | |||
* @message: error message | * @message: error message | |||
* | * | |||
* Flickcurl Message handler callback. | * Flickcurl Message handler callback. | |||
*/ | */ | |||
typedef void (*flickcurl_message_handler)(void *user_data, const char *mess age); | typedef void (*flickcurl_message_handler)(void *user_data, const char *mess age); | |||
skipping to change at line 1296 | skipping to change at line 1314 | |||
extern const char* const flickcurl_short_copyright_string; | extern const char* const flickcurl_short_copyright_string; | |||
FLICKCURL_API | FLICKCURL_API | |||
extern const char* const flickcurl_copyright_string; | extern const char* const flickcurl_copyright_string; | |||
FLICKCURL_API | FLICKCURL_API | |||
extern const char* const flickcurl_license_string; | extern const char* const flickcurl_license_string; | |||
FLICKCURL_API | FLICKCURL_API | |||
extern const char* const flickcurl_home_url_string; | extern const char* const flickcurl_home_url_string; | |||
FLICKCURL_API | FLICKCURL_API | |||
extern const char* const flickcurl_version_string; | extern const char* const flickcurl_version_string; | |||
FLICKCURL_API | ||||
extern const char* const flickcurl_flickr_service_uri; | ||||
/* library init - call once before creating anything */ | /* library init - call once before creating anything */ | |||
FLICKCURL_API | FLICKCURL_API | |||
int flickcurl_init(void); | int flickcurl_init(void); | |||
/* library cleanup - call once before exit */ | /* library cleanup - call once before exit */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_finish(void); | void flickcurl_finish(void); | |||
/* flickcurl* object constructor */ | /* flickcurl* object constructor */ | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl* flickcurl_new(void); | flickcurl* flickcurl_new(void); | |||
/* flickcurl* object destructor */ | /* flickcurl* object destructor */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free(flickcurl *fc); | void flickcurl_free(flickcurl *fc); | |||
/* flickcurl* object set methods */ | /* flickcurl* object set methods */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_set_service_uri(flickcurl *fc, const char *uri); | ||||
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 | 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 | 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 | 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 | FLICKCURL_API | |||
void flickcurl_set_http_accept(flickcurl* fc, const char *value); | void flickcurl_set_http_accept(flickcurl* fc, const char *value); | |||
FLICKCURL_API | FLICKCURL_API | |||
skipping to change at line 1512 | skipping to change at line 1535 | |||
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 | |||
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.members */ | ||||
FLICKCURL_API | ||||
void flickcurl_free_member(flickcurl_member *member_object); | ||||
FLICKCURL_API | ||||
void flickcurl_free_members(flickcurl_member **members_object); | ||||
FLICKCURL_API | ||||
flickcurl_member** flickcurl_groups_members_getList(flickcurl* fc, const ch | ||||
ar* group_id, const char* membertypes, int per_page, int page); | ||||
/* flickr.groups.pools */ | /* flickr.groups.pools */ | |||
FLICKCURL_API | 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_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_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_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 | FLICKCURL_API | |||
skipping to change at line 1546 | skipping to change at line 1577 | |||
/* flickr.machinetags */ | /* flickr.machinetags */ | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_tag_namespace** flickcurl_machinetags_getNamespaces(flickcurl* fc , const char* predicate, int per_page, int page); | flickcurl_tag_namespace** flickcurl_machinetags_getNamespaces(flickcurl* fc , const char* predicate, int per_page, int page); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_tag_predicate_value** flickcurl_machinetags_getPairs(flickcurl* f c, const char* namespace, const char* predicate, int per_page, int page); | flickcurl_tag_predicate_value** flickcurl_machinetags_getPairs(flickcurl* f c, const char* namespace, const char* predicate, int per_page, int page); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_tag_predicate_value** flickcurl_machinetags_getPredicates(flickcu rl* fc, const char* namespace, int per_page, int page); | flickcurl_tag_predicate_value** flickcurl_machinetags_getPredicates(flickcu rl* fc, const char* namespace, int per_page, int page); | |||
FLICKCURL_API | FLICKCURL_API | |||
flickcurl_tag_predicate_value** flickcurl_machinetags_getValues(flickcurl* fc, const char* namespace, const char* predicate, int per_page, int page); | flickcurl_tag_predicate_value** flickcurl_machinetags_getValues(flickcurl* fc, const char* namespace, const char* predicate, int per_page, int page); | |||
/* flickr.panda */ | ||||
FLICKCURL_API | ||||
char** flickcurl_panda_getList(flickcurl* fc); | ||||
FLICKCURL_API | ||||
flickcurl_photo** flickcurl_panda_getPhotos(flickcurl *fc, const char *pand | ||||
a_name); | ||||
/* flickr.photo.getSizes */ | /* flickr.photo.getSizes */ | |||
FLICKCURL_API | FLICKCURL_API | |||
void flickcurl_free_size(flickcurl_size *size); | void flickcurl_free_size(flickcurl_size *size); | |||
FLICKCURL_API | FLICKCURL_API | |||
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 | |||
End of changes. 6 change blocks. | ||||
1 lines changed or deleted | 40 lines changed or added | |||