|
Packit Service |
3880ab |
/*
|
|
Packit Service |
3880ab |
* misc.h Miscellaneous TIPC helper functions.
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* This program is free software; you can redistribute it and/or
|
|
Packit Service |
3880ab |
* modify it under the terms of the GNU General Public License
|
|
Packit Service |
3880ab |
* as published by the Free Software Foundation; either version
|
|
Packit Service |
3880ab |
* 2 of the License, or (at your option) any later version.
|
|
Packit Service |
3880ab |
*
|
|
Packit Service |
3880ab |
* Authors: Richard Alpe <richard.alpe@ericsson.com>
|
|
Packit Service |
3880ab |
*/
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#ifndef _TIPC_MISC_H
|
|
Packit Service |
3880ab |
#define _TIPC_MISC_H
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#include <stdint.h>
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
uint32_t str2addr(char *str);
|
|
Packit Service |
3880ab |
int str2nodeid(char *str, uint8_t *id);
|
|
Packit Service |
3880ab |
void nodeid2str(uint8_t *id, char *str);
|
|
Packit Service |
3880ab |
void hash2nodestr(uint32_t hash, char *str);
|
|
Packit Service |
3880ab |
int str2key(char *str, struct tipc_aead_key *key);
|
|
Packit Service |
3880ab |
|
|
Packit Service |
3880ab |
#endif
|