[gmime/gmime-2-4] Fixed all signer_get_* functions to take const signer
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime/gmime-2-4] Fixed all signer_get_* functions to take const signer
- Date: Sun, 21 Nov 2010 16:51:44 +0000 (UTC)
commit f3b73d092d2ece27b807875053c3d392fc8a7ca3
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Nov 21 11:49:38 2010 -0500
Fixed all signer_get_* functions to take const signer
2010-11-21 Jeffrey Stedfast <fejj novell com>
Fixes bug #635405.
* gmime/gmime-cipher-context.c (g_mime_signer_get_*): These
functions all now take a const GMimeSigner *.
ChangeLog | 7 +++++++
gmime/gmime-cipher-context.c | 16 ++++++++--------
gmime/gmime-cipher-context.h | 16 ++++++++--------
3 files changed, 23 insertions(+), 16 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index b9407c3..cb27a5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2010-11-21 Jeffrey Stedfast <fejj novell com>
+
+ Fixes bug #635405.
+
+ * gmime/gmime-cipher-context.c (g_mime_signer_get_*): These
+ functions all now take a const GMimeSigner *.
+
2010-11-19 Jeffrey Stedfast <fejj novell com>
Fixes bug #635152
diff --git a/gmime/gmime-cipher-context.c b/gmime/gmime-cipher-context.c
index da3a5ce..26a1cd2 100644
--- a/gmime/gmime-cipher-context.c
+++ b/gmime/gmime-cipher-context.c
@@ -495,7 +495,7 @@ g_mime_signer_set_status (GMimeSigner *signer, GMimeSignerStatus status)
* Returns: the signer status.
**/
GMimeSignerStatus
-g_mime_signer_get_status (GMimeSigner *signer)
+g_mime_signer_get_status (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, GMIME_SIGNER_STATUS_NONE);
@@ -528,7 +528,7 @@ g_mime_signer_set_errors (GMimeSigner *signer, GMimeSignerError errors)
* Returns: the signer errors.
**/
GMimeSignerError
-g_mime_signer_get_errors (GMimeSigner *signer)
+g_mime_signer_get_errors (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, GMIME_SIGNER_ERROR_NONE);
@@ -561,7 +561,7 @@ g_mime_signer_set_trust (GMimeSigner *signer, GMimeSignerTrust trust)
* Returns: the signer trust.
**/
GMimeSignerTrust
-g_mime_signer_get_trust (GMimeSigner *signer)
+g_mime_signer_get_trust (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, GMIME_SIGNER_TRUST_NONE);
@@ -595,7 +595,7 @@ g_mime_signer_set_fingerprint (GMimeSigner *signer, const char *fingerprint)
* Returns: the signer's key fingerprint.
**/
const char *
-g_mime_signer_get_fingerprint (GMimeSigner *signer)
+g_mime_signer_get_fingerprint (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -629,7 +629,7 @@ g_mime_signer_set_key_id (GMimeSigner *signer, const char *key_id)
* Returns: the signer's key id.
**/
const char *
-g_mime_signer_get_key_id (GMimeSigner *signer)
+g_mime_signer_get_key_id (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -663,7 +663,7 @@ g_mime_signer_set_name (GMimeSigner *signer, const char *name)
* Returns: the signer's name.
**/
const char *
-g_mime_signer_get_name (GMimeSigner *signer)
+g_mime_signer_get_name (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -696,7 +696,7 @@ g_mime_signer_set_created (GMimeSigner *signer, time_t created)
* Returns: the creation date of the signer's key.
**/
time_t
-g_mime_signer_get_created (GMimeSigner *signer)
+g_mime_signer_get_created (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, (time_t) -1);
@@ -729,7 +729,7 @@ g_mime_signer_set_expires (GMimeSigner *signer, time_t expires)
* Returns: the expiration date of the signer's key.
**/
time_t
-g_mime_signer_get_expires (GMimeSigner *signer)
+g_mime_signer_get_expires (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, (time_t) -1);
diff --git a/gmime/gmime-cipher-context.h b/gmime/gmime-cipher-context.h
index ae07f5d..54e7b34 100644
--- a/gmime/gmime-cipher-context.h
+++ b/gmime/gmime-cipher-context.h
@@ -256,28 +256,28 @@ void g_mime_signer_free (GMimeSigner *signer);
GMimeSigner *g_mime_signer_next (GMimeSigner *signer);
void g_mime_signer_set_status (GMimeSigner *signer, GMimeSignerStatus status);
-GMimeSignerStatus g_mime_signer_get_status (GMimeSigner *signer);
+GMimeSignerStatus g_mime_signer_get_status (const GMimeSigner *signer);
void g_mime_signer_set_errors (GMimeSigner *signer, GMimeSignerError error);
-GMimeSignerError g_mime_signer_get_errors (GMimeSigner *signer);
+GMimeSignerError g_mime_signer_get_errors (const GMimeSigner *signer);
void g_mime_signer_set_trust (GMimeSigner *signer, GMimeSignerTrust trust);
-GMimeSignerTrust g_mime_signer_get_trust (GMimeSigner *signer);
+GMimeSignerTrust g_mime_signer_get_trust (const GMimeSigner *signer);
void g_mime_signer_set_fingerprint (GMimeSigner *signer, const char *fingerprint);
-const char *g_mime_signer_get_fingerprint (GMimeSigner *signer);
+const char *g_mime_signer_get_fingerprint (const GMimeSigner *signer);
void g_mime_signer_set_key_id (GMimeSigner *signer, const char *key_id);
-const char *g_mime_signer_get_key_id (GMimeSigner *signer);
+const char *g_mime_signer_get_key_id (const GMimeSigner *signer);
void g_mime_signer_set_name (GMimeSigner *signer, const char *name);
-const char *g_mime_signer_get_name (GMimeSigner *signer);
+const char *g_mime_signer_get_name (const GMimeSigner *signer);
void g_mime_signer_set_created (GMimeSigner *signer, time_t created);
-time_t g_mime_signer_get_created (GMimeSigner *signer);
+time_t g_mime_signer_get_created (const GMimeSigner *signer);
void g_mime_signer_set_expires (GMimeSigner *signer, time_t expires);
-time_t g_mime_signer_get_expires (GMimeSigner *signer);
+time_t g_mime_signer_get_expires (const GMimeSigner *signer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]