Tor  0.4.7.0-alpha-dev
recommend_pkg.h
Go to the documentation of this file.
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-2021, The Tor Project, Inc. */
5 /* See LICENSE for licensing information */
6 
7 /**
8  * \file recommend_pkg.h
9  * \brief Header file for recommend_pkg.c
10  **/
11 
12 #ifndef TOR_RECOMMEND_PKG_H
13 #define TOR_RECOMMEND_PKG_H
14 
15 #ifdef HAVE_MODULE_DIRAUTH
16 int validate_recommended_package_line(const char *line);
17 
18 #else
19 
20 static inline int
21 validate_recommended_package_line(const char *line)
22 {
23  (void) line;
24  return 0;
25 }
26 
27 #endif /* defined(HAVE_MODULE_DIRAUTH) */
28 
29 #endif /* !defined(TOR_RECOMMEND_PKG_H) */
int validate_recommended_package_line(const char *line)
Definition: recommend_pkg.c:38