Top | ![]() |
![]() |
![]() |
![]() |
EBookBackendSExpEBookBackendSExp — A utility for comparing EContact objects or vcards with search expressions. |
This API is an all purpose utility for comparing EContact objects with search expressions generated by EBookQuery.
EBookBackendSExp *
e_book_backend_sexp_new (const gchar *text
);
Creates a new EBookBackendSExp from text
.
const gchar *
e_book_backend_sexp_text (EBookBackendSExp *sexp
);
Retrieve the text expression for the given EBookBackendSExp object.
Since: 3.8
gboolean e_book_backend_sexp_match_vcard (EBookBackendSExp *sexp
,const gchar *vcard
);
Checks if vcard
matches sexp
.
gboolean e_book_backend_sexp_match_contact (EBookBackendSExp *sexp
,EContact *contact
);
Checks if contact
matches sexp
.
void
e_book_backend_sexp_lock (EBookBackendSExp *sexp
);
Locks the sexp
. Other threads cannot use it until
it's unlocked with e_book_backend_sexp_unlock()
.
Since: 3.34
void
e_book_backend_sexp_unlock (EBookBackendSExp *sexp
);
Unlocks the sexp
, previously locked by e_book_backend_sexp_lock()
.
Since: 3.34