aboutsummaryrefslogtreecommitdiff
path: root/lib/notmuch.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2015-09-23 08:31:19 -0300
committerDavid Bremner <david@tethera.net>2015-09-23 08:58:19 -0300
commit93ee4faa4d60e78c8cfeb95580919cac07ac0eca (patch)
tree263cb15aba2c3751d2da4a816a0a3be1b0384d1c /lib/notmuch.h
parent6cdd34a4c762c954426f586d514a3e041c1db3b0 (diff)
lib: constify arguments to notmuch_query_get_*
These functions are all just accessors, and it's pretty clear they don't modify the query struct. This also fixes one warning I created when I introduced status.c.
Diffstat (limited to 'lib/notmuch.h')
-rw-r--r--lib/notmuch.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index 86b5b4de..87756838 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -728,13 +728,13 @@ typedef enum {
* Return the query_string of this query. See notmuch_query_create.
*/
const char *
-notmuch_query_get_query_string (notmuch_query_t *query);
+notmuch_query_get_query_string (const notmuch_query_t *query);
/**
* Return the notmuch database of this query. See notmuch_query_create.
*/
notmuch_database_t *
-notmuch_query_get_database (notmuch_query_t *query);
+notmuch_query_get_database (const notmuch_query_t *query);
/**
* Exclude values for notmuch_query_set_omit_excluded. The strange
@@ -791,7 +791,7 @@ notmuch_query_set_sort (notmuch_query_t *query, notmuch_sort_t sort);
* notmuch_query_set_sort.
*/
notmuch_sort_t
-notmuch_query_get_sort (notmuch_query_t *query);
+notmuch_query_get_sort (const notmuch_query_t *query);
/**
* Add a tag that will be excluded from the query results by default.