From 93833a8c019d992b9ecdca5aff2e39f34b692e8c Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 17 Aug 2001 09:28:49 +0000 Subject: use card_sexp. (pas_backend_file_book_view_free): same. 2001-08-17 Chris Toshok * backend/pas/pas-backend-file.c (pas_backend_file_book_view_copy): use card_sexp. (pas_backend_file_book_view_free): same. (vcard_matches_search): use the new pas_backend_card_sexp_match_vcard call. (pas_backend_file_search): use card_sexp. (pas_backend_file_process_get_book_view): same. * backend/pas/Makefile.am (libpas_a_SOURCES): add pas-backend-card-sexp.[ch]. svn path=/trunk/; revision=12150 --- addressbook/backend/pas/pas-backend-card-sexp.h | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 addressbook/backend/pas/pas-backend-card-sexp.h (limited to 'addressbook/backend/pas/pas-backend-card-sexp.h') diff --git a/addressbook/backend/pas/pas-backend-card-sexp.h b/addressbook/backend/pas/pas-backend-card-sexp.h new file mode 100644 index 0000000000..e1cb75c77d --- /dev/null +++ b/addressbook/backend/pas/pas-backend-card-sexp.h @@ -0,0 +1,30 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +#ifndef __PAS_BACKEND_CARD_SEXP_H__ +#define __PAS_BACKEND_CARD_SEXP_H__ + +#include + +typedef struct _PASBackendCardSExpPrivate PASBackendCardSExpPrivate; + +typedef struct { + GtkObject parent_object; + PASBackendCardSExpPrivate *priv; +} PASBackendCardSExp; + +typedef struct { + GtkObjectClass parent_class; +} PASBackendCardSExpClass; + +PASBackendCardSExp *pas_backend_card_sexp_new (const char *text); +GtkType pas_backend_card_sexp_get_type (void); + +gboolean pas_backend_card_sexp_match_vcard (PASBackendCardSExp *sexp, const char *vcard); + +#define PAS_BACKEND_CARD_SEXP_TYPE (pas_backend_card_sexp_get_type ()) +#define PAS_BACKEND_CARD_SEXP(o) (GTK_CHECK_CAST ((o), PAS_BACKEND_CARD_SEXP_TYPE, PASBackendCardSExp)) +#define PAS_BACKEND_CARD_SEXP_CLASS(k) (GTK_CHECK_CLASS_CAST((k), PAS_BACKEND_TYPE, PASBackendCardSExpClass)) +#define PAS_IS_BACKEND_CARD_SEXP(o) (GTK_CHECK_TYPE ((o), PAS_BACKEND_CARD_SEXP_TYPE)) +#define PAS_IS_BACKEND_CARD_SEXP_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), PAS_BACKEND_CARD_SEXP_TYPE)) + +#endif /* __PAS_BACKEND_CARD_SEXP_H__ */ -- cgit v1.2.3