tipc/misc.h
raw| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | /* |
| 3 | * misc.h Miscellaneous TIPC helper functions. |
| 4 | * |
| 5 | * Authors: Richard Alpe <[email protected]> |
| 6 | */ |
| 7 | |
| 8 | #ifndef _TIPC_MISC_H |
| 9 | #define _TIPC_MISC_H |
| 10 | |
| 11 | #include <stdint.h> |
| 12 | |
| 13 | uint32_t str2addr(char *str); |
| 14 | int str2nodeid(char *str, uint8_t *id); |
| 15 | void nodeid2str(uint8_t *id, char *str); |
| 16 | void hash2nodestr(uint32_t hash, char *str); |
| 17 | int str2key(char *str, struct tipc_aead_key *key); |
| 18 | |
| 19 | #endif |