]>
Commit | Line | Data |
---|---|---|
f043759d RA |
1 | /* |
2 | * misc.h Miscellaneous TIPC helper functions. | |
3 | * | |
4 | * This program is free software; you can redistribute it and/or | |
5 | * modify it under the terms of the GNU General Public License | |
6 | * as published by the Free Software Foundation; either version | |
7 | * 2 of the License, or (at your option) any later version. | |
8 | * | |
9 | * Authors: Richard Alpe <richard.alpe@ericsson.com> | |
10 | */ | |
11 | ||
12 | #ifndef _TIPC_MISC_H | |
13 | #define _TIPC_MISC_H | |
14 | ||
15 | #include <stdint.h> | |
16 | ||
17 | uint32_t str2addr(char *str); | |
725ebfbf JM |
18 | int str2nodeid(char *str, uint8_t *id); |
19 | void nodeid2str(uint8_t *id, char *str); | |
5947046d | 20 | void hash2nodestr(uint32_t hash, char *str); |
24bee3bf | 21 | int str2key(char *str, struct tipc_aead_key *key); |
f043759d RA |
22 | |
23 | #endif |