diff options
author | Corentin Noël <corentin@elementary.io> | 2021-11-30 23:56:31 +0100 |
---|---|---|
committer | Corentin Noël <tintou@noel.tf> | 2022-04-09 00:43:06 +0200 |
commit | e2e875b500106aab85e1371298162dd084494652 (patch) | |
tree | 7dd36c008d0b82f5303148fd4176f4318f365aaa /gcr-gtk3/gcr-secure-entry-buffer.h | |
parent | c062daec42d7931f3437b64ee3f4b8dd4f76d8f0 (diff) | |
download | gcr-e2e875b500106aab85e1371298162dd084494652.tar.gz |
Rename gcr-ui into gcr-gtk3
Diffstat (limited to 'gcr-gtk3/gcr-secure-entry-buffer.h')
-rw-r--r-- | gcr-gtk3/gcr-secure-entry-buffer.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/gcr-gtk3/gcr-secure-entry-buffer.h b/gcr-gtk3/gcr-secure-entry-buffer.h new file mode 100644 index 0000000..c7a0c60 --- /dev/null +++ b/gcr-gtk3/gcr-secure-entry-buffer.h @@ -0,0 +1,65 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ +/* gcr-secure-buffer.h - secure memory gtkentry buffer + + Copyright (C) 2009 Stefan Walter + + The Gnome Keyring Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Gnome Keyring 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Gnome Library; see the file COPYING.LIB. If not, + see <http://www.gnu.org/licenses/>. + + Author: Stef Walter <stef@memberwebs.com> +*/ + +#if !defined (__GCR_INSIDE_HEADER__) && !defined (GCR_COMPILATION) +#error "Only <gcr/gcr.h> or <gcr/gcr-base.h> can be included directly." +#endif + +#ifndef __GCR_SECURE_ENTRY_BUFFER_H__ +#define __GCR_SECURE_ENTRY_BUFFER_H__ + +#include <gtk/gtk.h> + +G_BEGIN_DECLS + +#define GCR_TYPE_SECURE_ENTRY_BUFFER (gcr_secure_entry_buffer_get_type ()) +#define GCR_SECURE_ENTRY_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_SECURE_ENTRY_BUFFER, GcrSecureEntryBuffer)) +#define GCR_SECURE_ENTRY_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCR_TYPE_SECURE_ENTRY_BUFFER, GcrSecureEntryBufferClass)) +#define GCR_IS_SECURE_ENTRY_BUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCR_TYPE_SECURE_ENTRY_BUFFER)) +#define GCR_IS_SECURE_ENTRY_BUFFER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCR_TYPE_SECURE_ENTRY_BUFFER)) +#define GCR_SECURE_ENTRY_BUFFER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCR_TYPE_SECURE_ENTRY_BUFFER, GcrSecureEntryBufferClass)) + +typedef struct _GcrSecureEntryBuffer GcrSecureEntryBuffer; +typedef struct _GcrSecureEntryBufferClass GcrSecureEntryBufferClass; +typedef struct _GcrSecureEntryBufferPrivate GcrSecureEntryBufferPrivate; + +struct _GcrSecureEntryBuffer { + GtkEntryBuffer parent; + + /*< private >*/ + GcrSecureEntryBufferPrivate *pv; +}; + +struct _GcrSecureEntryBufferClass +{ + GtkEntryBufferClass parent_class; +}; + +GType gcr_secure_entry_buffer_get_type (void) G_GNUC_CONST; + +GtkEntryBuffer * gcr_secure_entry_buffer_new (void); + +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GcrSecureEntryBuffer, g_object_unref) + +G_END_DECLS + +#endif /* __GCR_SECURE_ENTRY_BUFFER_H__ */ |