mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-19 18:00:33 +01:00
Add missing copyright/license statements on all .rs files
(Yes, I have Chelsea's permission.)
This commit is contained in:
parent
6be75bd61d
commit
2ca8fcb892
3
src/rust/external/external.rs
vendored
3
src/rust/external/external.rs
vendored
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
use libc::{c_char, c_int};
|
||||
use std::ffi::CString;
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
//! FFI functions, only to be called from C.
|
||||
//!
|
||||
//! Equivalent C versions of this api are in `src/or/protover.c`
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
use external::c_tor_version_as_new_as;
|
||||
|
||||
use std::str::FromStr;
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
extern crate protover;
|
||||
|
||||
#[test]
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
extern crate libc;
|
||||
|
||||
mod smartlist;
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
use std::slice;
|
||||
use libc::{c_char, c_int};
|
||||
use std::ffi::CStr;
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
//! Allocation helper functions that allow data to be allocated in Rust
|
||||
//! using tor's specified allocator. In doing so, this can be later freed
|
||||
//! from C.
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
use libc::{c_char, c_void};
|
||||
use std::{ptr, slice, mem};
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
//! FFI functions to announce Rust support during tor startup, only to be
|
||||
//! called from C.
|
||||
//!
|
||||
|
@ -1,3 +1,6 @@
|
||||
// Copyright (c) 2016-2017, The Tor Project, Inc. */
|
||||
// See LICENSE for licensing information */
|
||||
|
||||
//! Small module to announce Rust support during startup for demonstration
|
||||
//! purposes.
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user