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

  $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 (NETEMAILADDRESSJNI_H)
#define NETEMAILADDRESSJNI_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_NetEMailAddress)
#  include "com_novell_service_nds_net_NetEMailAddress.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 tagNetEMailAddress
{
   jclass cls;

   struct
   {
      //
      jfieldID type;
      jfieldID address;

   } ID;

} NetEMailAddress, N_FAR *pNetEMailAddress;


N_EXTERN_FUNC_C (pNetEMailAddress)
NetEMailAddressCreateStruct
(
   JNIEnv *env
);

N_EXTERN_FUNC_C (jobject)
NetEMailAddressCreate
(
   JNIEnv *env,
   pNetEMailAddress sNetEMailAddress,
   pBuf_T buf
);

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

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

#endif /* NETEMAILADDRESSJNI_H */


