tor  0.4.2.1-alpha-dev
protover_rust.c
1 /* Copyright (c) 2016-2019, The Tor Project, Inc. */
2 /* See LICENSE for licensing information */
3 
4 /*
5  * \file protover_rust.c
6  * \brief Provide a C wrapper for functions exposed in /src/rust/protover,
7  * and safe translation/handling between the Rust/C boundary.
8  */
9 
10 #include "core/or/or.h"
11 #include "core/or/protover.h"
12 
13 #ifdef HAVE_RUST
14 
15 /* Define for compatibility, used in main.c */
16 void
18 {
19 }
20 
21 int protover_contains_long_protocol_names_(const char *s);
22 
27 bool
29 {
30  return protover_contains_long_protocol_names_(s) != 0;
31 }
32 
33 #endif /* defined(HAVE_RUST) */
34 
void protover_free_all(void)
Definition: protover.c:940
Master header file for Tor-specific functionality.
Headers and type declarations for protover.c.
bool protover_contains_long_protocol_names(const char *s)
Definition: protover.c:305