[evolution-kolab/ek-wip-acl] libekolab: added IMAP ACL string validator stub
- From: Christian Hilberg <chilberg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-kolab/ek-wip-acl] libekolab: added IMAP ACL string validator stub
- Date: Fri, 28 Sep 2012 14:46:09 +0000 (UTC)
commit 2651a7fc1b7321a42108f0a3e6bc8f37b70276e9
Author: Christian Hilberg <hilberg kernelconcepts de>
Date: Fri Sep 28 16:39:57 2012 +0200
libekolab: added IMAP ACL string validator stub
* stubbed in function for IMAP ACL string validation
* to be used after reading ACL strings from the server
and before writing them back onto the server
src/libekolab/camel-imapx-acl.c | 13 +++++++++++++
src/libekolab/camel-imapx-acl.h | 4 ++++
2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/libekolab/camel-imapx-acl.c b/src/libekolab/camel-imapx-acl.c
index 998e8b6..59c464d 100644
--- a/src/libekolab/camel-imapx-acl.c
+++ b/src/libekolab/camel-imapx-acl.c
@@ -108,4 +108,17 @@ camel_imapx_acl_resect (CamelImapxAcl *acl)
return tmp_acl;
}
+gboolean
+camel_imapx_acl_validate_imapacl (const gchar *imapacl,
+ GError **err)
+{
+ /* imapacl may be NULL */
+ g_return_val_if_fail (err == NULL || *err == NULL, FALSE);
+
+ if (imapacl == NULL)
+ return TRUE;
+
+ return TRUE;
+}
+
/*----------------------------------------------------------------------------*/
diff --git a/src/libekolab/camel-imapx-acl.h b/src/libekolab/camel-imapx-acl.h
index c33e548..5992231 100644
--- a/src/libekolab/camel-imapx-acl.h
+++ b/src/libekolab/camel-imapx-acl.h
@@ -58,6 +58,10 @@ camel_imapx_acl_free (CamelImapxAcl *acl);
CamelImapxAcl*
camel_imapx_acl_resect (CamelImapxAcl *acl);
+gboolean
+camel_imapx_acl_validate_imapacl (const gchar *imapacl,
+ GError **err);
+
/*----------------------------------------------------------------------------*/
#endif /* _CAMEL_IMAPX_ACL_H_ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]