~didier-barvaux/+junk/rohc-tcp

« back to all changes in this revision

Viewing changes to src/common/rohc_utils.h

  • Committer: Didier Barvaux
  • Date: 2013-06-30 12:53:19 UTC
  • mfrom: (535.1.213 rohc-main)
  • Revision ID: didier@barvaux.org-20130630125319-33xosfau63ygas1f
Sync with main branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * GNU General Public License for more details.
11
11
 *
12
12
 * You should have received a copy of the GNU General Public License
13
 
 * along with this program; if not, write to the Free Software
 
13
 * a32 with this program; if not, write to the Free Software
14
14
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
15
15
 */
16
16
 
35
35
#define rohc_min(value1, value2) \
36
36
        ( ((value1) <= (value2)) ? (value1) : (value2) )
37
37
 
38
 
#ifndef __KERNEL__
39
 
uint32_t ROHC_EXPORT ntohl(const uint32_t netlong) __attribute__((const));
40
 
uint16_t ROHC_EXPORT ntohs(const uint16_t netshort) __attribute__((const));
41
 
uint32_t ROHC_EXPORT htonl(const uint32_t hostlong) __attribute__((const));
42
 
uint16_t ROHC_EXPORT htons(const uint16_t hostshort) __attribute__((const));
43
 
#endif
 
38
uint32_t ROHC_EXPORT rohc_ntoh32(const uint32_t net32)
 
39
        __attribute__((const));
 
40
uint16_t ROHC_EXPORT rohc_ntoh16(const uint16_t net16)
 
41
        __attribute__((const));
 
42
uint32_t ROHC_EXPORT rohc_hton32(const uint32_t host32)
 
43
        __attribute__((const));
 
44
uint16_t ROHC_EXPORT rohc_hton16(const uint16_t host16)
 
45
        __attribute__((const));
44
46
 
45
47
#endif
46
48