DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T a

⟦1bf71f202⟧ TextFile

    Length: 2964 (0xb94)
    Types: TextFile
    Names: »attr.h«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/h/quipu/attr.h« 

TextFile

/* attr.h - directory service interface definition */

/*
 * $Header: /f/osi/h/quipu/RCS/attr.h,v 6.0 89/03/18 23:32:42 mrose Rel $
 *
 *
 * $Log:	attr.h,v $
 * Revision 6.0  89/03/18  23:32:42  mrose
 * Release 5.0
 * 
 */

/*
 *				  NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


#ifndef QUIPUATTR
#define QUIPUATTR

#include "quipu/oid.h"

#ifndef TRUE
#define FALSE 0
#define TRUE 1
#endif

	/* FIRST SECTION DEFINES STRUCTURES FOR ADDRESSING */

typedef struct {
	OID              at_oid;
	oid_table_attr * at_table;
} attrType, * AttributeType;

#define NULLAttrT (AttributeType) NULL
#define AttrT_alloc()   (AttributeType) smalloc (sizeof (attrType));

AttributeType AttrT_cpy();
AttributeType AttrT_new();
#define str2AttrT(x) AttrT_new(x)

struct file_syntax {
	int	fs_real_syntax;
	char *  fs_name;
	char	fs_default;
}; 

typedef struct {
	PE      av_pe;                  /* Original PE as sent over the net */
					/* This will be null in the dsa's   */
					/* in core database.                */
	int     av_syntax;              /* Specifies the syntax of the      */
					/* attribute  that follows.         */
#define AV_UNKNOWN              0       /* PE has not been decoded yet      */
#define AV_CASEEXACTSTRING      1
#define AV_CASEIGNORESTRING     2
#define AV_ACL                  3
#define AV_ASN                  4
#define AV_NUMERICSTRING        5
#define AV_PRESENTATIONADDRESS  6
#define AV_DN			7
#define AV_SCHEMA               8
#define AV_UPDATE               9
#define AV_BOOLEAN              10
#define AV_INTEGER              11
#define AV_TIME                 12
#define AV_OID                  13
#define AV_FILE			14
#define AV_OBJECTCLASS          15
#define AV_PHOTO		16
#define AV_WRITE_FILE		256
	union {
		char *                  av_str;
		struct acl *            av_acl;
		PE                      av_asn;
		char *                  av_num;
		struct PSAPaddr *       av_psap;
		struct dncomp *	        av_dn;
		struct tree_struct *    av_tree;
		struct edb_info *       av_update;
		int                     av_boolean;
		int                     av_integer;
		long                    av_time;
		OID                     av_oid;
		objectclass *           av_objectclass;
		struct file_syntax	av_file;
		} av_un;
} attrVal, * AttributeValue;

#define NULLAttrV (AttributeValue) NULL
#define AttrV_alloc()   (AttributeValue) smalloc (sizeof (attrVal));
#define AttrV_decode(x,y) if ( (y->av_pe != NULLPE) && (y->av_syntax == AV_UNKNOWN)) AttrV_do_decode(x,y)

AttributeValue AttrV_cpy();
AttributeValue str_at2AttrV();
AttributeValue str2AttrV();

#define EDBOUT  1
#define READOUT 3
#define DIROUT  4   /* for dn and rdn print only */

#define ps_print(ps,data) (void)ps_write(ps,(PElementData)data,strlen(data))

#endif