diff options
Diffstat (limited to 'src/app/config/or_state_st.h')
-rw-r--r-- | src/app/config/or_state_st.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/app/config/or_state_st.h b/src/app/config/or_state_st.h index 5f8214d146..225003bb7e 100644 --- a/src/app/config/or_state_st.h +++ b/src/app/config/or_state_st.h @@ -15,6 +15,7 @@ #include "lib/cc/torint.h" struct smartlist_t; +struct config_suite_t; /** Persistent state for an onion router, as saved to disk. */ struct or_state_t { @@ -87,6 +88,21 @@ struct or_state_t { /** When did we last rotate our onion key? "0" for 'no idea'. */ time_t LastRotatedOnionKey; + + /** Number of minutes since the last user-initiated request (as defined by + * the dormant net-status system.) Set to zero if we are dormant. */ + int MinutesSinceUserActivity; + /** True if we were dormant when we last wrote the file; false if we + * weren't. "auto" on initial startup. */ + int Dormant; + + /** + * State objects for individual modules. + * + * Never access this field or its members directly: instead, use the module + * in question to get its relevant state object if you must. + */ + struct config_suite_t *substates_; }; -#endif +#endif /* !defined(TOR_OR_STATE_ST_H) */ |