tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

mainloop_state.inc (630B)


      1 /**
      2 * @file mainloop_state.inc
      3 * @brief Declare configuration options for the crypto_ops module.
      4 **/
      5 
      6 /** Holds state for the mainloop, corresponding to part of the state
      7 * file in Tor's DataDirectory. */
      8 BEGIN_CONF_STRUCT(mainloop_state_t)
      9 
     10 /** Number of minutes since the last user-initiated request (as defined by
     11 * the dormant net-status system.) Set to zero if we are dormant. */
     12 CONF_VAR(MinutesSinceUserActivity, POSINT, 0, NULL)
     13 
     14 /** True if we were dormant when we last wrote the file; false if we
     15 * weren't.  "auto" on initial startup. */
     16 CONF_VAR(Dormant, AUTOBOOL, 0, "auto")
     17 
     18 END_CONF_STRUCT(mainloop_state_t)