summaryrefslogtreecommitdiff
path: root/gdata/gdata-batchable.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Drop use of `<!-- -->` to delimit pluralsPhilip Withnall2019-07-241-1/+1
| | | | | | | | | | | | | | | gtk-doc gained the ability to magically strip off the ‘s’ in a plural many years ago, so the workaround of splitting the ‘s’ from a class or function name is no longer needed. This clarifies the docs in the code a bit. This commit was made mechanically using ``` git search-replace -f '<!-- -->s///s' ``` Signed-off-by: Philip Withnall <withnall@endlessm.com>
* docs: Replace ‘**/’ gtk-doc comment endings with ‘*/’Philip Withnall2017-01-241-1/+1
| | | | | ‘*/’ is more standard, so this is basically a housekeeping improvement in coding style.
* core: Mark all API as stable and impose API and ABI stability guaranteesPhilip Withnall2014-11-031-1/+1
| | | | | | | | It’s time for libgdata to grow up and start guaranteeing some stability for its users. In this vein, it’s already been API stable for around 3 years (since 0.9.1) — it’s about time that was made explicit. http://upstream-tracker.org/versions/libgdata.html is quite interesting.
* core: Remove the old authentication API in favour of a new GDataAuthorizer APIPhilip Withnall2011-06-051-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This separates authentication and authorisation from the services themselves, allowing authorisation schemes to be plugged in as they pop into and out of fashion. This removes the old gdata_service_authenticate() methods, replacing them with an equivalent GDataClientLoginAuthorizer. Full test cases are provided, covering everything except parsing of error responses from the server by GDataClientLoginAuthorizer. This makes the following API changes: • Rename GDataAuthenticationError to GDataClientLoginAuthorizerError Rename GDATA_AUTHENTICATION_ERROR and gdata_authentication_error_quark() similarly. • Remove gdata_service_authenticate() in favour of using GDataClientLoginAuthorizer with GDataService::authorizer: - Remove gdata_service_authenticate(), gdata_service_authenticate_async() and gdata_service_authenticate_finish(). - Replace gdata_service_is_authenticated() by gdata_service_is_authorized() with much the same functionality. - Add GDataService::authorizer, gdata_service_get_authorizer(), gdata_service_set_authorizer() and gdata_service_get_authorization_domains(). - Remove gdata_service_get_client_id() in favour of GDataClientLoginAuthorizer::client-id. - Remove gdata_service_get_username() in favour of GDataClientLoginAuthorizer::username. - Remove gdata_service_get_password() in favour of GDataClientLoginAuthorizer::password. - Remove GDataServiceClass->service_name in favour of GDataAuthorizationDomain::service-name. - Remove GDataServiceClass->authentication_uri and GDataServiceClass->parse_authentication_response in favour of different GDataAuthorizer implementations. - Add GDataAuthorizer parameters to and remove client_id parameters from: gdata_calendar_service_new(), gdata_contacts_service_new(), gdata_documents_service_new(), gdata_picasaweb_service_new() and gdata_youtube_service_new(). • Add GDataAuthorizationDomain. - Add GDataServiceClass->get_authorization_domains and gdata_service_get_authorization_domains(). - Add auth. domain getters to various GDataService subclasses: gdata_youtube_service_get_primary_authorization_domain(), gdata_contacts_service_get_primary_authorization_domain(), gdata_calendar_service_get_primary_authorization_domain(), gdata_picasaweb_service_get_primary_authorization_domain(), gdata_documents_service_get_primary_authorization_domain() and gdata_documents_service_get_spreadsheet_authorization_domain(). - Add auth. domain properties to various standalone request objects: GDataDownloadStream::authorization-domain with gdata_download_stream_get_authorization_domain(), GDataUploadStream::authorization-domain with gdata_upload_stream_get_authorization_domain() and GDataBatchOperation::authorization-domain with gdata_batch_operation_get_authorization_domain(). - Add GDataAccessHandlerIface->get_authorization_domain. This doesn't have to be implemented by existing GDataAccessHandlers, but it's highly recommended. - Add a GDataAuthorizationDomain parameter to GDataServiceClass->append_query_headers, gdata_service_query(), gdata_service_query_async(), gdata_service_query_single_entry(), gdata_service_query_single_entry_async(), gdata_service_insert_entry(), gdata_service_insert_entry_async(), gdata_service_update_entry(), gdata_service_update_entry_async(), gdata_service_delete_entry(), gdata_service_delete_entry_async(), gdata_batchable_create_operation(), gdata_download_stream_new() and gdata_upload_stream_new(). • Add GDataAuthorizer as described above, implemented by GDataClientLoginAuthorizer. Helps: bgo#646285
* introspection: Add missing (transfer full) annotationsPhilip Withnall2010-09-301-1/+1
|
* [core] Batch operation supportPhilip Withnall2010-07-121-0/+73
Add batch operation support. Batch operations are executed by creating a new GDataBatchOperation, adding the required operations to it, then running it (sync or async). Batch operations are only supported by services which implement GDataBatchable. This includes full test cases and documentation. Closes: bgo#579169