/*
  $Source: /local/data/cvs/yellowbank/postgres/src/y_octet_t/y_octet_t.h,v $
  $Revision: 1.2 $
  $State: Exp $
  $Date: 2007/01/22 20:47:51 $
  $Author: yrp001 $
  $Locker:  $

  Copyright (c) 2006
  Ronald Peterson
  (Y) Yellowbank
  All rights reserved.  Applicable BSD license terms can be found in
  the associated LICENSE file.

  Fixed size binary string types.  Goal is to eliminate overhead of
  generic bytea type for standard length binary string objects, such
  as UUID's (aka GUID's), hash digests, and so on.
*/

// typedef char * y_octet_16;

// #define PG_GETARG_YOCT16(n) PG_GETARG_INT64((int64)n)
// #define PG_RETURN_YOCT16(x) PG_RETURN_POINTER((int64)x)

Datum y_octet_16_in( PG_FUNCTION_ARGS );
Datum y_octet_16_out( PG_FUNCTION_ARGS );
Datum y_octet_16_recv( PG_FUNCTION_ARGS );
Datum y_octet_16_send( PG_FUNCTION_ARGS );
Datum y_octet_16_lt( PG_FUNCTION_ARGS );
Datum y_octet_16_lteq( PG_FUNCTION_ARGS );
Datum y_octet_16_gt( PG_FUNCTION_ARGS );
Datum y_octet_16_gteq( PG_FUNCTION_ARGS );
Datum y_octet_16_eq( PG_FUNCTION_ARGS );
Datum y_octet_16_cmp( PG_FUNCTION_ARGS );
Datum y_octet_16_ne( PG_FUNCTION_ARGS );

// CAST functions
Datum text_to_y_octet_16(PG_FUNCTION_ARGS);

