767
726
<a name="id-1.4.3.8.7.13.7"></a><h4>Returns</h4>
768
727
<p> the <a class="link" href="eds-ECollectionBackendFactory.html#ECollectionBackendFactory" title="struct ECollectionBackendFactory"><span class="type">ECollectionBackendFactory</span></a> for <em class="parameter"><code>source</code></em>
769
728
, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p>
772
<p class="since">Since 3.6</p>
775
<div class="refsect2">
776
<a name="e-source-registry-server-new-auth-session"></a><h3>e_source_registry_server_new_auth_session ()</h3>
777
<pre class="programlisting"><a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="returnvalue">EAuthenticationSession</span></a> *
778
e_source_registry_server_new_auth_session
779
(<em class="parameter"><code><a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a> *server</code></em>,
780
<em class="parameter"><code><span class="type">ESourceAuthenticator</span> *authenticator</code></em>,
781
<em class="parameter"><code>const <a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *source_uid</code></em>);</pre>
782
<p>Convenience function instantiates an appropriate authentication
783
session type for <em class="parameter"><code>source_uid</code></em>
785
<p>If <em class="parameter"><code>server</code></em>
786
has an <a class="link" href="eds-EServerSideSource.html#EServerSideSource" title="struct EServerSideSource"><span class="type">EServerSideSource</span></a> instance for <em class="parameter"><code>source_uid</code></em>
788
its <span class="type">“auth-session-type”</span> is used to instantiate a new
789
authentication session. Otherwise a plain <a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a> is
791
<p>Unreference the returned <a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a> with <a href="https://developer.gnome.org/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-unref"><code class="function">g_object_unref()</code></a>
792
when finished with it.</p>
793
<div class="refsect3">
794
<a name="id-1.4.3.8.7.14.7"></a><h4>Parameters</h4>
795
<div class="informaltable"><table width="100%" border="0">
797
<col width="150px" class="parameters_name">
798
<col class="parameters_description">
799
<col width="200px" class="parameters_annotations">
803
<td class="parameter_name"><p>server</p></td>
804
<td class="parameter_description"><p>an <a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a></p></td>
805
<td class="parameter_annotations"> </td>
808
<td class="parameter_name"><p>authenticator</p></td>
809
<td class="parameter_description"><p>an <span class="type">ESourceAuthenticator</span></p></td>
810
<td class="parameter_annotations"> </td>
813
<td class="parameter_name"><p>source_uid</p></td>
814
<td class="parameter_description"><p>a data source identifier</p></td>
815
<td class="parameter_annotations"> </td>
820
<div class="refsect3">
821
<a name="id-1.4.3.8.7.14.8"></a><h4>Returns</h4>
822
<p> a new <a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a> for <em class="parameter"><code>source_uid</code></em>
826
<p class="since">Since 3.8</p>
829
<div class="refsect2">
830
<a name="e-source-registry-server-authenticate-sync"></a><h3>e_source_registry_server_authenticate_sync ()</h3>
831
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
832
e_source_registry_server_authenticate_sync
833
(<em class="parameter"><code><a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a> *server</code></em>,
834
<em class="parameter"><code><a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a> *session</code></em>,
835
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
836
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
837
<p>Queues the <em class="parameter"><code>session</code></em>
838
behind any ongoing or pending authentication
839
sessions for the same data source, and eventually executes <em class="parameter"><code>session</code></em>
841
(see <a class="link" href="eds-EAuthenticationSession.html#e-authentication-session-execute-sync" title="e_authentication_session_execute_sync ()"><code class="function">e_authentication_session_execute_sync()</code></a> for more details).</p>
842
<p>This function blocks until <em class="parameter"><code>session</code></em>
843
is finished executing. For a
844
non-blocking variation see <a class="link" href="eds-ESourceRegistryServer.html#e-source-registry-server-authenticate" title="e_source_registry_server_authenticate ()"><code class="function">e_source_registry_server_authenticate()</code></a>.</p>
845
<p>If an error occurs, the function sets <em class="parameter"><code>error</code></em>
846
and returns <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
847
<div class="refsect3">
848
<a name="id-1.4.3.8.7.15.7"></a><h4>Parameters</h4>
849
<div class="informaltable"><table width="100%" border="0">
851
<col width="150px" class="parameters_name">
852
<col class="parameters_description">
853
<col width="200px" class="parameters_annotations">
857
<td class="parameter_name"><p>server</p></td>
858
<td class="parameter_description"><p>an <a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a></p></td>
859
<td class="parameter_annotations"> </td>
862
<td class="parameter_name"><p>session</p></td>
863
<td class="parameter_description"><p>an <a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a></p></td>
864
<td class="parameter_annotations"> </td>
867
<td class="parameter_name"><p>cancellable</p></td>
868
<td class="parameter_description"><p>optional <a href="https://developer.gnome.org/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
869
<td class="parameter_annotations"> </td>
872
<td class="parameter_name"><p>error</p></td>
873
<td class="parameter_description"><p>return location for a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
874
<td class="parameter_annotations"> </td>
879
<div class="refsect3">
880
<a name="id-1.4.3.8.7.15.8"></a><h4>Returns</h4>
881
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on failure</p>
884
<p class="since">Since 3.6</p>
887
<div class="refsect2">
888
<a name="e-source-registry-server-authenticate"></a><h3>e_source_registry_server_authenticate ()</h3>
889
<pre class="programlisting"><span class="returnvalue">void</span>
890
e_source_registry_server_authenticate (<em class="parameter"><code><a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a> *server</code></em>,
891
<em class="parameter"><code><a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a> *session</code></em>,
892
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> *cancellable</code></em>,
893
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> callback</code></em>,
894
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
895
<p>Queues the <em class="parameter"><code>session</code></em>
896
behind any ongoing or pending authentication
897
sessions for the same data source, and eventually executes <em class="parameter"><code>session</code></em>
899
(see <a class="link" href="eds-EAuthenticationSession.html#e-authentication-session-execute-sync" title="e_authentication_session_execute_sync ()"><code class="function">e_authentication_session_execute_sync()</code></a> for more details).</p>
900
<p>This function returns immediately after enqueuing <em class="parameter"><code>session</code></em>
902
<em class="parameter"><code>session</code></em>
903
is finished executing, <em class="parameter"><code>callback</code></em>
904
will be called. You can
905
then call <a class="link" href="eds-ESourceRegistryServer.html#e-source-registry-server-authenticate-finish" title="e_source_registry_server_authenticate_finish ()"><code class="function">e_source_registry_server_authenticate_finish()</code></a> to get the
906
result of the operation.</p>
907
<div class="refsect3">
908
<a name="id-1.4.3.8.7.16.6"></a><h4>Parameters</h4>
909
<div class="informaltable"><table width="100%" border="0">
911
<col width="150px" class="parameters_name">
912
<col class="parameters_description">
913
<col width="200px" class="parameters_annotations">
917
<td class="parameter_name"><p>server</p></td>
918
<td class="parameter_description"><p>an <a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a></p></td>
919
<td class="parameter_annotations"> </td>
922
<td class="parameter_name"><p>session</p></td>
923
<td class="parameter_description"><p>an <a class="link" href="eds-EAuthenticationSession.html#EAuthenticationSession" title="struct EAuthenticationSession"><span class="type">EAuthenticationSession</span></a></p></td>
924
<td class="parameter_annotations"> </td>
927
<td class="parameter_name"><p>cancellable</p></td>
928
<td class="parameter_description"><p>optional <a href="https://developer.gnome.org/gio/unstable/GCancellable.html"><span class="type">GCancellable</span></a> object, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
929
<td class="parameter_annotations"> </td>
932
<td class="parameter_name"><p>callback</p></td>
933
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html#GAsyncReadyCallback"><span class="type">GAsyncReadyCallback</span></a> to call when the request is satisfied</p></td>
934
<td class="parameter_annotations"> </td>
937
<td class="parameter_name"><p>user_data</p></td>
938
<td class="parameter_description"><p>data to pass to the callback function</p></td>
939
<td class="parameter_annotations"> </td>
944
<p class="since">Since 3.6</p>
947
<div class="refsect2">
948
<a name="e-source-registry-server-authenticate-finish"></a><h3>e_source_registry_server_authenticate_finish ()</h3>
949
<pre class="programlisting"><a href="https://developer.gnome.org/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
950
e_source_registry_server_authenticate_finish
951
(<em class="parameter"><code><a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a> *server</code></em>,
952
<em class="parameter"><code><a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a> *result</code></em>,
953
<em class="parameter"><code><a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
954
<p>Finishes the operation started with <a class="link" href="eds-ESourceRegistryServer.html#e-source-registry-server-authenticate" title="e_source_registry_server_authenticate ()"><code class="function">e_source_registry_server_authenticate()</code></a>.
955
If an error occurred, the function will set <em class="parameter"><code>error</code></em>
956
and return <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>.</p>
957
<div class="refsect3">
958
<a name="id-1.4.3.8.7.17.5"></a><h4>Parameters</h4>
959
<div class="informaltable"><table width="100%" border="0">
961
<col width="150px" class="parameters_name">
962
<col class="parameters_description">
963
<col width="200px" class="parameters_annotations">
967
<td class="parameter_name"><p>server</p></td>
968
<td class="parameter_description"><p>an <a class="link" href="eds-ESourceRegistryServer.html#ESourceRegistryServer" title="struct ESourceRegistryServer"><span class="type">ESourceRegistryServer</span></a></p></td>
969
<td class="parameter_annotations"> </td>
972
<td class="parameter_name"><p>result</p></td>
973
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gio/unstable/GAsyncResult.html"><span class="type">GAsyncResult</span></a></p></td>
974
<td class="parameter_annotations"> </td>
977
<td class="parameter_name"><p>error</p></td>
978
<td class="parameter_description"><p>return location for a <a href="https://developer.gnome.org/glib/unstable/glib-Error-Reporting.html#GError"><span class="type">GError</span></a>, or <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
979
<td class="parameter_annotations"> </td>
984
<div class="refsect3">
985
<a name="id-1.4.3.8.7.17.6"></a><h4>Returns</h4>
986
<p> <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> on success, <a href="https://developer.gnome.org/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> on failure</p>
989
<p class="since">Since 3.6</p>
730
<p class="since">Since: <a class="link" href="api-index-3.6.html" title="Index of new symbols in 3.6">3.6</a></p>
992
733
<div class="refsect2">