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

  $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


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

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

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

#include "NetAttributeValueFactoryJNI.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;

   pNetAttributeValueFactory sNetAttributeValueFactory;

   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,
   nuint32 infoType,
   pBuf_T buf
);

#endif /* NetAttrRecordJNI_H */


