diff options
author | Chris Toshok <toshok@ximian.com> | 2003-01-10 09:55:27 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-01-10 09:55:27 +0800 |
commit | 2a174936f49118ce60e76b0debe4600fdbb4bc33 (patch) | |
tree | 7bce87f3a0a6ca53f04d5c63f6ed2aa4aece5fea /addressbook/backend/pas/pas-backend.c | |
parent | 50a352b3670e6b8e8d29a9559d2442fcf0b62c5e (diff) | |
download | gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar.gz gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar.bz2 gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar.lz gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar.xz gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.tar.zst gsoc2013-evolution-2a174936f49118ce60e76b0debe4600fdbb4bc33.zip |
build up the list of supported auth_methods.
2003-01-09 Chris Toshok <toshok@ximian.com>
* backend/pas/pas-backend-ldap.c (query_ldap_root_dse): build up
the list of supported auth_methods.
(pas_backend_ldap_process_get_supported_auth_methods): respond
with the list of auth methods we've built up.
(pas_backend_ldap_dispose): unref the auth_method list.
(pas_backend_ldap_class_init): hook up
pas_backend_ldap_process_get_supported_auth_methods.
* backend/pas/pas-backend.c
(pas_backend_get_supported_auth_methods): new function.
(process_client_requests): add clause for GetSupportedAuthMethods.
* backend/pas/pas-backend.h: add prototype for
pas_backend_get_supported_auth_methods, and add it to the class
vtable.
* backend/pas/pas-book.h: add GetSupportedAuthMethods enum member
and PASGetSupportedAuthMethodsRequest. and add prototype for
pas_book_respond_get_supported_auth_methods.
* backend/pas/pas-book.c
(pas_book_queue_get_supported_auth_methods): new function.
(impl_GNOME_Evolution_Addressbook_Book_getSupportedAuthMethods):
new function.
(pas_book_respond_get_supported_auth_methods): new function.
(pas_book_free_request): add clause for GetSupportedAuthMethods.
(pas_book_class_init): hook up getSupportedAuthMethods.
* backend/ebook/e-book-listener.c
(e_book_listener_queue_get_supported_fields_response): fields ->
list.
(e_book_listener_queue_get_supported_auth_methods_response): new
function.
(impl_BookListener_response_get_supported_auth_methods): new
function.
(e_book_listener_class_init): hook up
epv->notifySupportedAuthMethods.
* backend/ebook/e-book-listener.h: add
GetSupportedAuthMethodsResponse enum member, and change the field
name from "fields" to list (and use it for both GetSupportedFields
and GetSupportedAuthMethods)
* backend/ebook/e-book.c (e_book_get_supported_auth_methods): new
function.
(e_book_do_response_get_supported_auth_methods): new function.
* backend/ebook/e-book.h: add prototype for
e_book_get_supported_auth_methods.
* backend/idl/addressbook.idl: add getSupportedAuthMethods IDL
call.
svn path=/trunk/; revision=19386
Diffstat (limited to 'addressbook/backend/pas/pas-backend.c')
-rw-r--r-- | addressbook/backend/pas/pas-backend.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/addressbook/backend/pas/pas-backend.c b/addressbook/backend/pas/pas-backend.c index 513632c909..c8acad3c93 100644 --- a/addressbook/backend/pas/pas-backend.c +++ b/addressbook/backend/pas/pas-backend.c @@ -220,6 +220,20 @@ pas_backend_get_supported_fields (PASBackend *backend, return (* PAS_BACKEND_GET_CLASS (backend)->get_supported_fields) (backend, book, req); } +void +pas_backend_get_supported_auth_methods (PASBackend *backend, + PASBook *book, + PASGetSupportedAuthMethodsRequest *req) +{ + g_return_if_fail (PAS_IS_BACKEND (backend)); + g_return_if_fail (PAS_IS_BOOK (book)); + g_return_if_fail (req != NULL); + + g_assert (PAS_BACKEND_GET_CLASS (backend)->get_supported_auth_methods != NULL); + + return (* PAS_BACKEND_GET_CLASS (backend)->get_supported_auth_methods) (backend, book, req); +} + static void process_client_requests (PASBook *book, gpointer user_data) { @@ -276,6 +290,10 @@ process_client_requests (PASBook *book, gpointer user_data) case GetSupportedFields: pas_backend_get_supported_fields (backend, book, &req->get_supported_fields); break; + + case GetSupportedAuthMethods: + pas_backend_get_supported_auth_methods (backend, book, &req->get_supported_auth_methods); + break; } pas_book_free_request (req); |