Since
aa76c8f67001 'rx: Make struct rx_connection private', the fields
in struct rx_connection have been non-public.
In preparation for a future commit, implement new 'getter' routines for
the three rx_connection timeout values. Each one is fashioned after the
pre-existing 'setters':
- rx_GetConnDeadTime()
- rx_GetConnIdleDeadTime()
- rx_GetConnHardDeadTime()
Change-Id: I0c6f5370dc992316a49f7c8bff36ccf859c2c908
Reviewed-on: https://gerrit.openafs.org/15555
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
rx_GetCachedConnection
rx_GetCallAbortCode
rx_GetCallStatus
+rx_GetConnDeadTime
+rx_GetConnHardDeadTime
+rx_GetConnIdleDeadTime
rx_GetConnection
rx_GetConnectionEpoch
rx_GetConnectionId
rxi_CheckConnTimeouts(conn);
}
+int
+rx_GetConnDeadTime(struct rx_connection *conn)
+{
+ return conn->secondsUntilDead;
+}
+
+int
+rx_GetConnHardDeadTime(struct rx_connection *conn)
+{
+ return conn->hardDeadTime;
+}
+
+int
+rx_GetConnIdleDeadTime(struct rx_connection *conn)
+{
+ return conn->idleDeadTime;
+}
+
int rxi_lowPeerRefCount = 0;
int rxi_lowConnRefCount = 0;
int seconds);
extern void rx_SetConnHardDeadTime(struct rx_connection *conn, int seconds);
extern void rx_SetConnIdleDeadTime(struct rx_connection *conn, int seconds);
+extern int rx_GetConnDeadTime(struct rx_connection *conn);
+extern int rx_GetConnHardDeadTime(struct rx_connection *conn);
+extern int rx_GetConnIdleDeadTime(struct rx_connection *conn);
extern void rxi_DestroyConnection(struct rx_connection *conn);
extern void rx_GetConnection(struct rx_connection *conn);
extern void rx_DestroyConnection(struct rx_connection *conn);