|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T a
Length: 2291 (0x8f3)
Types: TextFile
Names: »attr.h«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0
└─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z«
└─⟦de7628f85⟧
└─⟦this⟧ »isode-6.0/h/quipu/attr.h«
/* attr.h - directory service interface definition */
/*
* $Header: /f/osi/h/quipu/RCS/attr.h,v 7.0 89/11/23 21:56:21 mrose Rel $
*
*
* $Log: attr.h,v $
* Revision 7.0 89/11/23 21:56:21 mrose
* Release 6.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"
#include "manifest.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)
typedef struct {
short av_syntax; /* Specifies the syntax of the */
/* attribute that follows. */
caddr_t av_struct;
} attrVal, * AttributeValue;
#define AV_WRITE_FILE 256
#define AV_FILE 128
#define MAX_AV_SYNTAX 50
#define NULLAttrV (AttributeValue) NULL
#define AttrV_alloc() (AttributeValue) smalloc (sizeof (attrVal));
AttributeValue AttrV_cpy();
AttributeValue str_at2AttrV();
AttributeValue str2AttrV();
short str2syntax();
short add_attribute_syntax ();
struct file_syntax {
short fs_real_syntax;
char * fs_name;
char fs_mode;
char fs_ref;
AttributeValue fs_attr;
};
#define FS_DEFAULT 0x01 /* default file name */
#define FS_CREATE 0x02 /* created thus remove file */
#define EDBOUT 1
#define FILEOUT 2 /* for writing to files only */
#define READOUT 3
#define DIROUT 4 /* for dn and rdn print only */
#define RDNOUT 5
#define ps_print(ps,data) (void)ps_write(ps,(PElementData)data,strlen(data))
typedef struct {
char * s_sntx; /* String defining syntax */
IFP s_encode;
IFP s_decode;
IFP s_parse;
IFP s_print;
IFP s_copy;
IFP s_compare;
IFP s_free;
char * s_pe_print; /* process to handle raw PE */
IFP s_approx; /* approx match routine */
char s_multiline; /* if true print each value on new line */
} sntx_table;
#endif