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

  $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 (NETATTRRECORDJNI_H)
#define NETATTRRECORDJNI_H


#include <jni.h>

#include "com_novell_service_jncpv2_net_NetJNI.h"

#include "com_novell_service_jncpv2_net_NetAsn1ID.h"
#include "com_novell_service_jncpv2_net_NetAttributeInfo.h"
#include "com_novell_service_jncpv2_net_NetIterationHandle.h"
#include "com_novell_service_jncpv2_net_NetObjectInfo.h"

#include <ntypes.h>

#include <nwnet.h>
#include <unicode.h>

#include "JNIString.h"
#include "jncp.h"
#include "nlmsem.h"
#include "netJNI.h"

#include "wire.h"


#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 tagNetAttrRecord
{
   jclass cls;

   jclass clsNetAttributeValue;

   struct
   {
      //
      jfieldID name;
      jfieldID syntaxId;
      jfieldID values;
   } ID;

} NetAttrRecord, N_FAR *pNetAttrRecord;


N_EXTERN_FUNC_C (pNetAttrRecord)
NetAttrRecordCreateStruct
(
   JNIEnv *env
);

N_EXTERN_FUNC_C (jobject)
NetAttrRecordCreate
(
   JNIEnv *env,
   pNetAttrRecord sNetAttrRecord,
   pBuf_T buf
);

#endif /* NETATTRRECORDJNI_H */


