[evolution-data-server/sqlite-refactor: 4/9] EBookQuery: Added end marker for the EBookQueryTest enum
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/sqlite-refactor: 4/9] EBookQuery: Added end marker for the EBookQueryTest enum
- Date: Thu, 21 Nov 2013 11:41:08 +0000 (UTC)
commit df003a7d4c015cbbb36ec2510d4c3f3385eb49fd
Author: Tristan Van Berkom <tristanvb openismus com>
Date: Thu Nov 21 20:31:46 2013 +0900
EBookQuery: Added end marker for the EBookQueryTest enum
addressbook/libebook-contacts/e-book-query.c | 3 +++
addressbook/libebook-contacts/e-book-query.h | 5 ++++-
2 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook-contacts/e-book-query.c b/addressbook/libebook-contacts/e-book-query.c
index 688eeb0..d6180e3 100644
--- a/addressbook/libebook-contacts/e-book-query.c
+++ b/addressbook/libebook-contacts/e-book-query.c
@@ -806,6 +806,8 @@ field_test_name (EBookQueryTest field_test)
return "regex_normal";
case E_BOOK_QUERY_REGEX_RAW:
return "regex_raw";
+ case E_BOOK_QUERY_LAST:
+ g_return_val_if_reached (NULL);
}
return NULL;
@@ -826,6 +828,7 @@ is_phone_test (EBookQueryTest field_test)
case E_BOOK_QUERY_ENDS_WITH:
case E_BOOK_QUERY_REGEX_NORMAL:
case E_BOOK_QUERY_REGEX_RAW:
+ case E_BOOK_QUERY_LAST:
break;
}
diff --git a/addressbook/libebook-contacts/e-book-query.h b/addressbook/libebook-contacts/e-book-query.h
index 2c03a61..9e6122b 100644
--- a/addressbook/libebook-contacts/e-book-query.h
+++ b/addressbook/libebook-contacts/e-book-query.h
@@ -60,6 +60,7 @@ typedef struct _EBookQuery EBookQuery;
* @E_BOOK_QUERY_REGEX_RAW: A regular expression query against raw contact data, this is usually slower than
* a %E_BOOK_QUERY_REGEX_NORMAL as it implies that #EVCards must be parsed in order to get the raw data
* for comparison.
+ * @E_BOOK_QUERY_LAST: End marker for the #EBookQueryTest enumeration, not a valid query test.
*
* The kind of test a query created by e_book_query_field_test() shall perform.
*
@@ -76,7 +77,7 @@ typedef enum {
E_BOOK_QUERY_EQUALS_SHORT_PHONE_NUMBER,
E_BOOK_QUERY_REGEX_NORMAL,
- E_BOOK_QUERY_REGEX_RAW
+ E_BOOK_QUERY_REGEX_RAW,
/*
Consider these "coming soon".
@@ -87,6 +88,8 @@ typedef enum {
E_BOOK_QUERY_GE,
E_BOOK_QUERY_EQ,
*/
+
+ E_BOOK_QUERY_LAST
} EBookQueryTest;
EBookQuery * e_book_query_from_string (const gchar *query_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]