tor  0.4.2.1-alpha-dev
desc_store_st.h
1 /* Copyright (c) 2001 Matej Pfajfar.
2  * Copyright (c) 2001-2004, Roger Dingledine.
3  * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
4  * Copyright (c) 2007-2019, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 #ifndef DESC_STORE_ST_H
8 #define DESC_STORE_ST_H
9 
11 typedef enum store_type_t {
12  ROUTER_STORE = 0,
13  EXTRAINFO_STORE = 1
14 } store_type_t;
15 
18 struct desc_store_t {
22  const char *fname_base;
24  const char *description;
25 
28  store_type_t type;
31  size_t journal_len;
33  size_t store_len;
36  size_t bytes_dropped;
37 };
38 
39 #endif /* !defined(DESC_STORE_ST_H) */
size_t store_len
Definition: desc_store_st.h:33
size_t journal_len
Definition: desc_store_st.h:31
const char * fname_base
Definition: desc_store_st.h:22
tor_mmap_t * mmap
Definition: desc_store_st.h:26
const char * description
Definition: desc_store_st.h:24
store_type_t type
Definition: desc_store_st.h:28
size_t bytes_dropped
Definition: desc_store_st.h:36