aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libcoopgamma.c8
-rw-r--r--src/libcoopgamma.h9
2 files changed, 9 insertions, 8 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c
index 7d84661..17f7f9c 100644
--- a/src/libcoopgamma.c
+++ b/src/libcoopgamma.c
@@ -2112,7 +2112,7 @@ int libcoopgamma_get_gamma_info_sync(const char* restrict ctrc, libcoopgamma_crt
* identify and parse the response, is stored here
* @return Zero on success, -1 on error
*/
-int libcoopgamma_get_gamma_send(libcoopgamma_filter_query_t* restrict query,
+int libcoopgamma_get_gamma_send(const libcoopgamma_filter_query_t* restrict query,
libcoopgamma_context_t* restrict ctx,
libcoopgamma_async_context_t* restrict async)
{
@@ -2310,7 +2310,7 @@ int libcoopgamma_get_gamma_recv(libcoopgamma_filter_table_t* restrict table,
* @return Zero on success, -1 on error, in which case `ctx->error`
* (rather than `errno`) is read for information about the error
*/
-int libcoopgamma_get_gamma_sync(libcoopgamma_filter_query_t* restrict query,
+int libcoopgamma_get_gamma_sync(const libcoopgamma_filter_query_t* restrict query,
libcoopgamma_filter_table_t* restrict table,
libcoopgamma_context_t* restrict ctx)
{
@@ -2332,7 +2332,7 @@ int libcoopgamma_get_gamma_sync(libcoopgamma_filter_query_t* restrict query,
* identify and parse the response, is stored here
* @return Zero on success, -1 on error
*/
-int libcoopgamma_set_gamma_send(libcoopgamma_filter_t* restrict filter, libcoopgamma_depth_t depth,
+int libcoopgamma_set_gamma_send(const libcoopgamma_filter_t* restrict filter, libcoopgamma_depth_t depth,
libcoopgamma_context_t* restrict ctx,
libcoopgamma_async_context_t* restrict async)
{
@@ -2452,7 +2452,7 @@ int libcoopgamma_set_gamma_recv(libcoopgamma_context_t* restrict ctx,
* @return Zero on success, -1 on error, in which case `ctx->error`
* (rather than `errno`) is read for information about the error
*/
-int libcoopgamma_set_gamma_sync(libcoopgamma_filter_t* restrict filter, libcoopgamma_depth_t depth,
+int libcoopgamma_set_gamma_sync(const libcoopgamma_filter_t* restrict filter, libcoopgamma_depth_t depth,
libcoopgamma_context_t* restrict ctx)
{
SYNC_CALL(libcoopgamma_set_gamma_send(filter, depth, ctx, &async),
diff --git a/src/libcoopgamma.h b/src/libcoopgamma.h
index 633fe65..de188de 100644
--- a/src/libcoopgamma.h
+++ b/src/libcoopgamma.h
@@ -1468,7 +1468,7 @@ int libcoopgamma_get_gamma_info_sync(const char* restrict, libcoopgamma_crtc_inf
* @return Zero on success, -1 on error
*/
LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__)))
-int libcoopgamma_get_gamma_send(libcoopgamma_filter_query_t* restrict, libcoopgamma_context_t* restrict,
+int libcoopgamma_get_gamma_send(const libcoopgamma_filter_query_t* restrict, libcoopgamma_context_t* restrict,
libcoopgamma_async_context_t* restrict);
/**
@@ -1501,7 +1501,8 @@ int libcoopgamma_get_gamma_recv(libcoopgamma_filter_table_t* restrict, libcoopga
* (rather than `errno`) is read for information about the error
*/
LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__)))
-int libcoopgamma_get_gamma_sync(libcoopgamma_filter_query_t* restrict, libcoopgamma_filter_table_t* restrict,
+int libcoopgamma_get_gamma_sync(const libcoopgamma_filter_query_t* restrict,
+ libcoopgamma_filter_table_t* restrict,
libcoopgamma_context_t* restrict);
@@ -1518,7 +1519,7 @@ int libcoopgamma_get_gamma_sync(libcoopgamma_filter_query_t* restrict, libcoopga
* @return Zero on success, -1 on error
*/
LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__)))
-int libcoopgamma_set_gamma_send(libcoopgamma_filter_t* restrict, libcoopgamma_depth_t,
+int libcoopgamma_set_gamma_send(const libcoopgamma_filter_t* restrict, libcoopgamma_depth_t,
libcoopgamma_context_t* restrict, libcoopgamma_async_context_t* restrict);
/**
@@ -1549,7 +1550,7 @@ int libcoopgamma_set_gamma_recv(libcoopgamma_context_t* restrict, libcoopgamma_a
* (rather than `errno`) is read for information about the error
*/
LIBCOOPGAMMA_GCC_ONLY(__attribute__((__nonnull__)))
-int libcoopgamma_set_gamma_sync(libcoopgamma_filter_t* restrict, libcoopgamma_depth_t,
+int libcoopgamma_set_gamma_sync(const libcoopgamma_filter_t* restrict, libcoopgamma_depth_t,
libcoopgamma_context_t* restrict);