context.h raw

   1  // Copyright (c) 2022-present The Bitcoin Core developers
   2  // Distributed under the MIT software license, see the accompanying
   3  // file COPYING or http://www.opensource.org/licenses/mit-license.php.
   4  
   5  #ifndef BITCOIN_KERNEL_CONTEXT_H
   6  #define BITCOIN_KERNEL_CONTEXT_H
   7  
   8  namespace kernel {
   9  //! Context struct holding the kernel library's logically global state, and
  10  //! passed to external libbitcoin_kernel functions which need access to this
  11  //! state. The kernel library API is a work in progress, so state organization
  12  //! and member list will evolve over time.
  13  //!
  14  //! State stored directly in this struct should be simple. More complex state
  15  //! should be stored to std::unique_ptr members pointing to opaque types.
  16  struct Context {
  17      Context();
  18  };
  19  } // namespace kernel
  20  
  21  #endif // BITCOIN_KERNEL_CONTEXT_H
  22