RTRlib
Main Page
Modules
Data Structures
Examples
All
Data Structures
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
rtrlib
lib
convert_byte_order.h
1
/*
2
* This file is part of RTRlib.
3
*
4
* This file is subject to the terms and conditions of the MIT license.
5
* See the file LICENSE in the top level directory for more details.
6
*
7
* Website: http://rtrlib.realmv6.org/
8
*/
9
10
#ifndef LRTR_CONVERT_BYTE_ORDER_H
11
#define LRTR_CONVERT_BYTE_ORDER_H
12
13
#include <inttypes.h>
14
18
enum
target_byte_order {
19
TO_NETWORK_BYTE_ORDER,
20
TO_HOST_HOST_BYTE_ORDER,
21
};
22
29
uint16_t lrtr_convert_short(
const
enum
target_byte_order tbo,
30
const
uint16_t value);
31
38
uint32_t lrtr_convert_long(
const
enum
target_byte_order tbo,
39
const
uint32_t value);
40
41
#endif
/* LRTR_CONVERT_BYTE_ORDER_H */
Generated on Tue Sep 5 2017 13:32:18 for RTRlib by
1.8.5