[gmime] Fixed all signer_get_* functions to take const signer
- From: Jeffrey Stedfast <fejj src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gmime] Fixed all signer_get_* functions to take const signer
- Date: Sun, 21 Nov 2010 16:43:28 +0000 (UTC)
commit c903f5999c54987a60951c637236245b483d55c2
Author: Jeffrey Stedfast <fejj gnome org>
Date: Sun Nov 21 11:41:50 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 | 26 +++++++++++++-------------
gmime/gmime-cipher-context.h | 26 +++++++++++++-------------
3 files changed, 33 insertions(+), 26 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c4241ea..eed2c41 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 7c5f352..76b7d92 100644
--- a/gmime/gmime-cipher-context.c
+++ b/gmime/gmime-cipher-context.c
@@ -535,7 +535,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);
@@ -568,7 +568,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);
@@ -601,7 +601,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);
@@ -635,7 +635,7 @@ g_mime_signer_set_issuer_serial (GMimeSigner *signer, const char *issuer_serial)
* Returns: the signer's issuer serial.
**/
const char *
-g_mime_signer_get_issuer_serial (GMimeSigner *signer)
+g_mime_signer_get_issuer_serial (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -669,7 +669,7 @@ g_mime_signer_set_issuer_name (GMimeSigner *signer, const char *issuer_name)
* Returns: the signer's issuer name.
**/
const char *
-g_mime_signer_get_issuer_name (GMimeSigner *signer)
+g_mime_signer_get_issuer_name (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -703,7 +703,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);
@@ -737,7 +737,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);
@@ -771,7 +771,7 @@ g_mime_signer_set_email (GMimeSigner *signer, const char *email)
* Returns: the signer's email.
**/
const char *
-g_mime_signer_get_email (GMimeSigner *signer)
+g_mime_signer_get_email (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, NULL);
@@ -805,7 +805,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);
@@ -838,7 +838,7 @@ g_mime_signer_set_sig_created (GMimeSigner *signer, time_t created)
* Returns: the creation date of the signer's signature.
**/
time_t
-g_mime_signer_get_sig_created (GMimeSigner *signer)
+g_mime_signer_get_sig_created (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, (time_t) -1);
@@ -871,7 +871,7 @@ g_mime_signer_set_sig_expires (GMimeSigner *signer, time_t expires)
* Returns: the expiration date of the signer's signature.
**/
time_t
-g_mime_signer_get_sig_expires (GMimeSigner *signer)
+g_mime_signer_get_sig_expires (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, (time_t) -1);
@@ -904,7 +904,7 @@ g_mime_signer_set_key_created (GMimeSigner *signer, time_t created)
* Returns: the creation date of the signer's key.
**/
time_t
-g_mime_signer_get_key_created (GMimeSigner *signer)
+g_mime_signer_get_key_created (const GMimeSigner *signer)
{
g_return_val_if_fail (signer != NULL, (time_t) -1);
@@ -937,7 +937,7 @@ g_mime_signer_set_key_expires (GMimeSigner *signer, time_t expires)
* Returns: the expiration date of the signer's key.
**/
time_t
-g_mime_signer_get_key_expires (GMimeSigner *signer)
+g_mime_signer_get_key_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 44ec3ce..25e0d29 100644
--- a/gmime/gmime-cipher-context.h
+++ b/gmime/gmime-cipher-context.h
@@ -285,43 +285,43 @@ 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_issuer_serial (GMimeSigner *signer, const char *issuer_serial);
-const char *g_mime_signer_get_issuer_serial (GMimeSigner *signer);
+const char *g_mime_signer_get_issuer_serial (const GMimeSigner *signer);
void g_mime_signer_set_issuer_name (GMimeSigner *signer, const char *issuer_name);
-const char *g_mime_signer_get_issuer_name (GMimeSigner *signer);
+const char *g_mime_signer_get_issuer_name (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_email (GMimeSigner *signer, const char *email);
-const char *g_mime_signer_get_email (GMimeSigner *signer);
+const char *g_mime_signer_get_email (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_sig_created (GMimeSigner *signer, time_t created);
-time_t g_mime_signer_get_sig_created (GMimeSigner *signer);
+time_t g_mime_signer_get_sig_created (const GMimeSigner *signer);
void g_mime_signer_set_sig_expires (GMimeSigner *signer, time_t expires);
-time_t g_mime_signer_get_sig_expires (GMimeSigner *signer);
+time_t g_mime_signer_get_sig_expires (const GMimeSigner *signer);
void g_mime_signer_set_key_created (GMimeSigner *signer, time_t created);
-time_t g_mime_signer_get_key_created (GMimeSigner *signer);
+time_t g_mime_signer_get_key_created (const GMimeSigner *signer);
void g_mime_signer_set_key_expires (GMimeSigner *signer, time_t expires);
-time_t g_mime_signer_get_key_expires (GMimeSigner *signer);
+time_t g_mime_signer_get_key_expires (const GMimeSigner *signer);
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]