X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-protocol-info.h;h=c7f2e246a234bf5029fbd51af33bf77ee8eae203;hp=c358d1d527ebc59afc665355d68b4ccde9b78186;hb=eeab1fed238484308335d400bcc7c531a48571ed;hpb=bad70d1af9ab9d707c8a65e990338d3ab0820b6c diff --git a/src/modest-protocol-info.h b/src/modest-protocol-info.h index c358d1d..c7f2e24 100644 --- a/src/modest-protocol-info.h +++ b/src/modest-protocol-info.h @@ -88,8 +88,7 @@ modest_protocol_info_get_transport_store_protocol_pair_list (); * Returns: a list of protocols. After use, it should be freed * with modest_pair_list_free */ -ModestPairList* -modest_protocol_info_get_auth_protocol_pair_list (); +ModestPairList* modest_protocol_info_get_auth_protocol_pair_list (void); /** @@ -102,21 +101,38 @@ modest_protocol_info_get_auth_protocol_pair_list (); * Returns: a list of protocols. After use, it should be freed * with modest_pair_list_free */ -ModestPairList* -modest_protocol_info_get_connection_protocol_pair_list (); +ModestPairList* modest_protocol_info_get_connection_protocol_pair_list (void); /** * modest_protocol_info_get_transport_store_protocol: - * @name: the name of the ModestTransportStoreProtocol - * @proto_type: the type of protocol you want to have + * @name: the name of the #ModestTransportStoreProtocol * * return the id of the protocol with the given name * * Returns: the id of the protocol or MODEST_PROTOCOL_TRANSPORT_STORE_UNKNOWN */ -ModestTransportStoreProtocol -modest_protocol_info_get_transport_store_protocol (const gchar* name); +ModestTransportStoreProtocol modest_protocol_info_get_transport_store_protocol (const gchar* name); + +/** + * modest_protocol_info_get_auth_protocol: + * @name: The name of the #ModestAuthProtocol + * + * Returns the ID of the protocol with the given name + * + * Returns: The ID of the protocol or MODEST_PROTOCOL_AUTH_NONE + */ +ModestAuthProtocol modest_protocol_info_get_auth_protocol (const gchar* name); + +/** + * modest_protocol_info_get_connection_protocol: + * @name: The name of the #ModestConnectionProtocol + * + * Returns the ID of the protocol with the given name + * + * Returns: The ID of the protocol or MODEST_CONNECTION_PROTOCOL_NORMAL + */ +ModestConnectionProtocol modest_protocol_info_get_connection_protocol (const gchar* name); /** * modest_protocol_info_get_transport_store_protocol_name: @@ -126,8 +142,7 @@ modest_protocol_info_get_transport_store_protocol (const gchar* name); * * Returns: string id of the proto as a constant string, that should NOT be modified or freed */ -const gchar* -modest_protocol_info_get_transport_store_protocol_name (ModestTransportStoreProtocol proto); +const gchar* modest_protocol_info_get_transport_store_protocol_name (ModestTransportStoreProtocol proto); /** * modest_protocol_info_get_auth_protocol_name: @@ -137,8 +152,7 @@ modest_protocol_info_get_transport_store_protocol_name (ModestTransportStoreProt * * Returns: string id of the proto as a constant string, that should NOT be modified or freed */ -const gchar* -modest_protocol_info_get_auth_protocol_name (ModestAuthProtocol proto); +const gchar* modest_protocol_info_get_auth_protocol_name (ModestAuthProtocol proto); /* * modest_protocol_get_auth_protocol_pair_list: @@ -148,9 +162,7 @@ modest_protocol_info_get_auth_protocol_name (ModestAuthProtocol proto); * * Returns: List of method/display name pairs */ - -ModestPairList* -modest_protocol_info_get_auth_protocol_pair_list (); +ModestPairList* modest_protocol_info_get_auth_protocol_pair_list (void); /** * modest_protocol_info_get_auth_protocol_name: