diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-27 10:05:30 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-27 10:05:30 -0400 |
commit | f5e9e2748ff5fa245936ce5e465d19b3d300e393 (patch) | |
tree | 6fb7a04050bec9d603d81e75757d0dfb1acf9128 /src/common/compat_rust.h | |
parent | c4804bb280f16a484d9d5d1ed4aae8bc1614cfce (diff) | |
parent | 91a1b9058bccf17893bea3e0c8dd98b5141bdfa9 (diff) | |
download | tor-f5e9e2748ff5fa245936ce5e465d19b3d300e393.tar.gz tor-f5e9e2748ff5fa245936ce5e465d19b3d300e393.zip |
Merge branch 'protover-rust-impl_squashed'
Diffstat (limited to 'src/common/compat_rust.h')
-rw-r--r-- | src/common/compat_rust.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/common/compat_rust.h b/src/common/compat_rust.h deleted file mode 100644 index 72fde39296..0000000000 --- a/src/common/compat_rust.h +++ /dev/null @@ -1,28 +0,0 @@ -/* Copyright (c) 2017, The Tor Project, Inc. */ -/* See LICENSE for licensing information */ - -/** - * \file rust_compat.h - * \brief Headers for rust_compat.c - **/ - -#ifndef TOR_RUST_COMPAT_H -#define TOR_RUST_COMPAT_H - -#include "torint.h" - -/** - * Strings allocated in Rust must be freed from Rust code again. Let's make - * it less likely to accidentally mess up and call tor_free() on it, because - * currently it'll just work but might break at any time. - */ -typedef uintptr_t rust_str_t; - -void rust_str_free(rust_str_t); - -const char *rust_str_get(const rust_str_t); - -rust_str_t rust_welcome_string(void); - -#endif /* !defined(TOR_RUST_COMPAT_H) */ - |