/******
gutil.h
GameSpy C Engine SDK

Copyright 1999 GameSpy Industries, Inc

Suite E-204
2900 Bristol Street
Costa Mesa, CA 92626
(714)549-7689
Fax(714)549-0757

******

 Please see the GameSpy C Engine SDK documentation for more 
 information

******/

#ifndef GUTIL_UCHAR_DEFINED
#define GUTIL_UCHAR_DEFINED
typedef unsigned char uchar;
#endif

void swap_byte (uchar *a, uchar *b);
uchar encode_ct (uchar c);

void gs_encode (uchar *ins, int size, uchar *result);
void gs_encrypt (uchar *key, int key_len, uchar *buffer_ptr, int buffer_len);

#ifdef _MSC_VER
#pragma warning(disable : 4100)		// unreferenced formal parameter
#pragma warning(disable : 4127)		// conditional expression is constant
#pragma warning(disable : 4152)		// nonstandard extension, function/data pointer conversion in expression
#pragma warning(disable : 4244)     // 'conversion' conversion from 'type1' to 'type2', possible loss of data
#endif
