summaryrefslogtreecommitdiff
path: root/include/device/device_types.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-18 12:21:27 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-18 18:39:02 +0100
commit3b097978c147d6e98f02e7b2d31e75a36e36338f (patch)
treebf8e7c770b5e8dfbf104dcf80e594ce573470754 /include/device/device_types.h
parent16e0cdef9ce952fa5f7980d19f113be027e88b27 (diff)
Use long_natural_t for recnum_t
For 64 bits, device operations will provide an addressing space of 64 bits. Also define the translation functions if long_natural_t or long_integer_t are ever used in RPCs. Note that MIG does not implicitly inherit the translation functions from types hence the need to redefine them for recnum_t. Message-Id: <Y59MFzekEA0YUXIw@mars>
Diffstat (limited to 'include/device/device_types.h')
-rw-r--r--include/device/device_types.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/device/device_types.h b/include/device/device_types.h
index f13122f0..7c533723 100644
--- a/include/device/device_types.h
+++ b/include/device/device_types.h
@@ -89,7 +89,8 @@ typedef struct {
/*
* Record number for random-access devices
*/
-typedef unsigned int recnum_t;
+typedef long_natural_t recnum_t;
+typedef rpc_long_natural_t rpc_recnum_t;
/*
* Flavors of set/get statuses