OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2011 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_DEBUG_STUB_DEBUG_UTIL_H_ | |
8 #define NATIVE_CLIENT_SRC_TRUSTED_DEBUG_STUB_DEBUG_UTIL_H_ 1 | |
9 | |
10 #include "native_client/src/include/portability.h" | |
11 | |
12 EXTERN_C_BEGIN | |
13 | |
14 | |
15 // Free or Parse string and dup into provided array | |
16 int debug_get_tokens(const char *in, char delim, char *out[], int max); | |
17 void debug_free_tokens(char *strings[], int max); | |
18 | |
19 // Convert between 4bit value and ASCII 0-F hex. | |
20 int debug_nibble_to_int(char ch); | |
21 char debug_int_to_nibble(int nibble); | |
22 | |
23 // Debug Logging | |
24 void debug_log_info(const char *fmt, ...); | |
25 void debug_log_warning(const char *fmt, ...); | |
26 void debug_log_error(const char *fmt, ...); | |
27 | |
28 EXTERN_C_END | |
29 | |
30 #endif | |
OLD | NEW |