summaryrefslogtreecommitdiff
path: root/telepathy-glib/tls-certificate.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-04-18 12:39:21 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-05-09 12:14:10 +0200
commita380793b20a04cf9d6e40c23c3eaff227509162b (patch)
tree1adc97b845d4186215899732074039307743c869 /telepathy-glib/tls-certificate.c
parentbb29e6e5e47ad09b77ae2fe6c75f22f96d1758f5 (diff)
downloadtelepathy-glib-a380793b20a04cf9d6e40c23c3eaff227509162b.tar.gz
tls-certificate: add accessors
I didn't add one for the 'parent' property because it's more of an implementation detail and a get_parent() method would look weird.
Diffstat (limited to 'telepathy-glib/tls-certificate.c')
-rw-r--r--telepathy-glib/tls-certificate.c48
1 files changed, 48 insertions, 0 deletions
diff --git a/telepathy-glib/tls-certificate.c b/telepathy-glib/tls-certificate.c
index b41628d36..4066545c1 100644
--- a/telepathy-glib/tls-certificate.c
+++ b/telepathy-glib/tls-certificate.c
@@ -883,3 +883,51 @@ tp_tls_certificate_get_nth_rejection (TpTLSCertificate *self,
return rej->error;
}
+
+/**
+ * tp_tls_certificate_get_cert_type:
+ * @self: a #TpTLSCertificate
+ *
+ * Return the #TpTLSCertificate:cert-type property
+ *
+ * Returns: the value of #TpTLSCertificate:cert-type property
+ *
+ * Since: UNRELEASED
+ */
+const gchar *
+tp_tls_certificate_get_cert_type (TpTLSCertificate *self)
+{
+ return self->priv->cert_type;
+}
+
+/**
+ * tp_tls_certificate_get_cert_data:
+ * @self: a #TpTLSCertificate
+ *
+ * Return the #TpTLSCertificate:cert-data property
+ *
+ * Returns: (transfer none) (type GLib.PtrArray) (element-type GLib.Array): the value of #TpTLSCertificate:cert-data property
+ *
+ * Since: UNRELEASED
+ */
+GPtrArray *
+tp_tls_certificate_get_cert_data (TpTLSCertificate *self)
+{
+ return self->priv->cert_data;
+}
+
+/**
+ * tp_tls_certificate_get_state:
+ * @self: a #TpTLSCertificate
+ *
+ * Return the #TpTLSCertificate:state property
+ *
+ * Returns: the value of #TpTLSCertificate:state property
+ *
+ * Since: UNRELEASED
+ */
+TpTLSCertificateState
+tp_tls_certificate_get_state (TpTLSCertificate *self)
+{
+ return self->priv->state;
+}