
/* **************************************************************************

  $Archive:  $
  $Revision:  $
  $Modtime:  $

  Copyright (c) 1997 Novell, Inc.  All Rights Reserved.

  THIS WORK IS  SUBJECT  TO  U.S.  AND  INTERNATIONAL  COPYRIGHT  LAWS  AND
  TREATIES.   NO  PART  OF  THIS  WORK MAY BE  USED,  PRACTICED,  PERFORMED
  COPIED, DISTRIBUTED, REVISED, MODIFIED, TRANSLATED,  ABRIDGED, CONDENSED,
  EXPANDED,  COLLECTED,  COMPILED,  LINKED,  RECAST, TRANSFORMED OR ADAPTED
  WITHOUT THE PRIOR WRITTEN CONSENT OF NOVELL, INC. ANY USE OR EXPLOITATION
  OF THIS WORK WITHOUT AUTHORIZATION COULD SUBJECT THE PERPETRATOR TO
  CRIMINAL AND CIVIL LIABILITY.

****************************************************************************/

#if !defined (NETPOSTALADDRESSJNI_H)
#define NETPOSTALADDRESSJNI_H


#if !defined (JNI_H)
#  include <jni.h>
#endif

#if !defined (NTYPES_H)
#  include <ntypes.h>
#endif

#if !defined (NWDSBUFT_H)
#  include <nwdsbuft.h>
#endif

#if !defined (_Included_com_novell_service_nds_net_NetPostalAddress)
#  include "com_novell_service_nds_net_NetPostalAddress.h"
#endif


#define NETSYNTAXPKG    "com/novell/service/nds/net/"
#define NETPKG          "com/novell/service/jncpv2/net/"
#define JNCPPKG         "com/novell/service/jncp/"


/* public final class NetAttrRecord implements Serializable
 * {
 *    //
 *    private String name;
 *    private int syntaxId;
 *    private NetAttributeValue[] values;
 * }
 */
typedef struct tagNetPostalAddress
{
   jclass cls;

   jclass clsString;

   struct
   {
      //
      jfieldID value;

   } ID;

} NetPostalAddress, N_FAR *pNetPostalAddress;


N_EXTERN_FUNC_C (pNetPostalAddress)
NetPostalAddressCreateStruct
(
   JNIEnv *env
);

N_EXTERN_FUNC_C (jobject)
NetPostalAddressCreate
(
   JNIEnv *env,
   pNetPostalAddress sNetPostalAddress,
   pBuf_T buf
);

N_EXTERN_FUNC_C (jbyteArray)
NetPostalAddress_toByteArray
(
   JNIEnv *env,
   nptr cValue,
   nuint32 cLength
);

N_GLOBAL_FUNC_C (nptr) 
NetPostalAddress_toCStruct
(
   JNIEnv      *env, 
   jbyteArray  value
);

#endif /* NETPOSTALADDRESSJNI_H */


