summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 18:16:36 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-16 18:16:36 +0100
commit37be0abf391f4df8155ca08442964e48a4574ea1 (patch)
tree2883f0e8f1e9a2a64977d6b479779ffd12c5a413
parent0cd309e07706b1108447033c9e68c9a60e2aa260 (diff)
device_types: Add more const_ types
-rw-r--r--include/device/device_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/device/device_types.h b/include/device/device_types.h
index 63ec26bd..f13122f0 100644
--- a/include/device/device_types.h
+++ b/include/device/device_types.h
@@ -69,12 +69,14 @@ typedef unsigned int dev_mode_t;
* IO buffer - out-of-line array of characters.
*/
typedef char * io_buf_ptr_t;
+typedef const char * const_io_buf_ptr_t;
/*
* IO buffer - in-line array of characters.
*/
#define IO_INBAND_MAX (128) /* must match device_types.defs */
typedef char io_buf_ptr_inband_t[IO_INBAND_MAX];
+typedef const char *const_io_buf_ptr_inband_t;
/*
* IO buffer vector - for scatter/gather IO.