diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-04-19 15:33:16 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-05-09 12:14:11 +0200 |
commit | 5abd182c71d56445f303c04338a1e0a2167832de (patch) | |
tree | 4160e4443a3671157fd6060df2ff2d7921ab8f06 /telepathy-glib/tls-certificate-rejection.h | |
parent | 3320966b2adc98407e488c34e6e7342830ec11c7 (diff) | |
download | telepathy-glib-5abd182c71d56445f303c04338a1e0a2167832de.tar.gz |
add TpTLSCertificateRejection
Diffstat (limited to 'telepathy-glib/tls-certificate-rejection.h')
-rw-r--r-- | telepathy-glib/tls-certificate-rejection.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/telepathy-glib/tls-certificate-rejection.h b/telepathy-glib/tls-certificate-rejection.h new file mode 100644 index 000000000..5aea9b2d6 --- /dev/null +++ b/telepathy-glib/tls-certificate-rejection.h @@ -0,0 +1,81 @@ +/* + * tls-certificate-rejection.h + * + * Copyright (C) 2012 Collabora Ltd. <http://www.collabora.co.uk/> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + + +#ifndef __TP_TLS_CERTIFICATE_REJECTION_H__ +#define __TP_TLS_CERTIFICATE_REJECTION_H__ + +#include <glib-object.h> + +#include <telepathy-glib/enums.h> + +G_BEGIN_DECLS + +typedef struct _TpTLSCertificateRejection TpTLSCertificateRejection; +typedef struct _TpTLSCertificateRejectionClass TpTLSCertificateRejectionClass; +typedef struct _TpTLSCertificateRejectionPriv TpTLSCertificateRejectionPriv; + +struct _TpTLSCertificateRejectionClass { + /*<private>*/ + GObjectClass parent_class; +}; + +struct _TpTLSCertificateRejection { + /*<private>*/ + GObject parent; + TpTLSCertificateRejectionPriv *priv; +}; + +GType tp_tls_certificate_rejection_get_type (void); + +/* TYPE MACROS */ +#define TP_TYPE_TLS_CERTIFICATE_REJECTION \ + (tp_tls_certificate_rejection_get_type ()) +#define TP_TLS_CERTIFICATE_REJECTION(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST((obj), \ + TP_TYPE_TLS_CERTIFICATE_REJECTION, \ + TpTLSCertificateRejection)) +#define TP_TLS_CERTIFICATE_REJECTION_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_CAST((klass), \ + TP_TYPE_TLS_CERTIFICATE_REJECTION, \ + TpTLSCertificateRejectionClass)) +#define TP_IS_TLS_CERTIFICATE_REJECTION(obj) \ + (G_TYPE_CHECK_INSTANCE_TYPE((obj), \ + TP_TYPE_TLS_CERTIFICATE_REJECTION)) +#define TP_IS_TLS_CERTIFICATE_REJECTION_CLASS(klass) \ + (G_TYPE_CHECK_CLASS_TYPE((klass), \ + TP_TYPE_TLS_CERTIFICATE_REJECTION)) +#define TP_TLS_CERTIFICATE_REJECTION_GET_CLASS(obj) \ + (G_TYPE_INSTANCE_GET_CLASS ((obj), \ + TP_TYPE_TLS_CERTIFICATE_REJECTION, \ + TpTLSCertificateRejectionClass)) + +const GError * tp_tls_certificate_rejection_get_error ( + TpTLSCertificateRejection *self); +TpTLSCertificateRejectReason tp_tls_certificate_rejection_get_reason ( + TpTLSCertificateRejection *self); +const gchar * tp_tls_certificate_rejection_get_dbus_error ( + TpTLSCertificateRejection *self); +GVariant * tp_tls_certificate_rejection_get_details ( + TpTLSCertificateRejection *self); + +G_END_DECLS + +#endif /* #ifndef __TP_TLS_CERTIFICATE_REJECTION_H__*/ |