1 // Licensed to the Apache Software Foundation (ASF) under one 2 // or more contributor license agreements. See the NOTICE file 3 // distributed with this work for additional information 4 // regarding copyright ownership. The ASF licenses this file 5 // to you under the Apache License, Version 2.0 (the 6 // "License"); you may not use this file except in compliance 7 // with the License. You may obtain a copy of the License at 8 // 9 // http://www.apache.org/licenses/LICENSE-2.0 10 // 11 // Unless required by applicable law or agreed to in writing, 12 // software distributed under the License is distributed on an 13 // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 // KIND, either express or implied. See the License for the 15 // specific language governing permissions and limitations 16 // under the License. 17 18 use libc::*; 19 20 extern "C" { trace_ext_puts(str: *const c_char)21 pub fn trace_ext_puts(str: *const c_char); trace_ext_get_thread_id() -> c_int22 pub fn trace_ext_get_thread_id() -> c_int; trace_set_level(level: c_int)23 pub fn trace_set_level(level: c_int); trace_get_level() -> c_int24 pub fn trace_get_level() -> c_int; trace_printf( func: *const c_char, line: c_int, level: c_int, level_ok: bool, fmt: *const c_char, ... )25 pub fn trace_printf( 26 func: *const c_char, 27 line: c_int, 28 level: c_int, 29 level_ok: bool, 30 fmt: *const c_char, 31 ... 32 ); dhex_dump( function: *const c_char, line: c_int, level: c_int, buf: *const c_void, len: c_int, )33 pub fn dhex_dump( 34 function: *const c_char, 35 line: c_int, 36 level: c_int, 37 buf: *const c_void, 38 len: c_int, 39 ); 40 } 41