X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fmodest-proto.h;h=003f0548b09b0e3d069e04edcc7b687638829370;hb=63071df3bb59e87da5d50ff0360ec506ac3a2413;hp=70cc8b5e2c0e6790374723c672746ba49e395e85;hpb=434ec10090daec7d9d80c1f419b9113d15d58fd4;p=modest diff --git a/src/modest-proto.h b/src/modest-proto.h index 70cc8b5..003f054 100644 --- a/src/modest-proto.h +++ b/src/modest-proto.h @@ -17,7 +17,24 @@ enum { }; typedef gint ModestProtoType; +/** + * modest_proto_is_valid: + * @proto: a string describing the protocol + * + * checks if proto is a valid protocol + * + * Returns: TRUE if proto is valid, FALSE otherwise + */ gboolean modest_proto_is_valid (const gchar *proto); + +/** + * modest_proto_type: + * @proto: a string describing the protocol + * + * converts the string proto into a ModestProtoType + * + * Returns: a valid ModestProtoType corresponding to proto + */ ModestProtoType modest_proto_type (const gchar *proto); #endif /*__MODEST_SERVER_PROTO_H__*/