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 c

⟦2648429c5⟧ TextFile

    Length: 2804 (0xaf4)
    Types: TextFile
    Names: »commonarg.h«

Derivation

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

TextFile

/* commonarg.h - directory operation common arguments */

/*
 * $Header: /f/osi/h/quipu/RCS/commonarg.h,v 6.0 89/03/18 23:32:46 mrose Rel $
 *
 *
 * $Log:	commonarg.h,v $
 * Revision 6.0  89/03/18  23:32:46  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 COMMONARG
#define COMMONARG

#include "quipu/attrvalue.h"
#include "quipu/dsp.h"

typedef struct extension
    {
	int		  ext_id;
	int		  ext_critical;
	PE		  ext_item;
	struct extension	* ext_next;
    } *Extension;
#define NULLEXT		((Extension) 0)
#define ext_alloc()	(Extension) smalloc(sizeof(struct extension))

typedef struct common_args {    /* Common arguments for operations      */
    ServiceControl      ca_servicecontrol;
				/* Extra security stuff would go here   */
    DN                  ca_requestor;
    struct op_progress  ca_progress;
    int                 ca_aliased_rdns;
#define CA_NO_ALIASDEREFERENCED -1
    struct extension	* ca_extensions;
} common_args, CommonArgs;
#define NULL_COMMONARG ((struct common_args *) NULL)


typedef struct common_results {
    DN          cr_requestor;
				/* Secuity stuff to go here.  The       */
				/* is not relevant until this is added  */
    char        cr_aliasdereferenced;
				/* set to TRUE or FALSE                 */
} common_results, CommonResults;


typedef struct entrystruct {   /* Represents EntryInformation           */
    DN                  ent_dn;
    Attr_Sequence       ent_attr;
    int                 ent_iscopy;
#define INFO_MASTER 0x001
#define INFO_COPY   0x002
				/* This is the only info derivable by   */
				/* protocol                             */
				/* INCA also distingusihes local cached */
#define INFO_CACHE 0x003
    time_t              ent_age;
				/* age of chaced info                   */
    struct entrystruct  *ent_next;
} entrystruct, EntryInfo;

#define NULLENTRYINFO ((EntryInfo *) 0)
#define entryinfo_alloc()          (EntryInfo *) smalloc(sizeof(EntryInfo))
#define entryinfo_cmp(x,y)          (((dn_cmp (x.ent_dn ,y.ent_dn) == OK) && (as_cmp (x.ent_attr ,y.ent_attr) == OK)) ? OK : NOTOK)

typedef struct entryinfoselection {
				/* Rerpesents EntryInformationSelection */
    char        eis_allattributes;
				/* if set to TRUE, all attributes       */
				/* returned, if not as per next arg     */
    Attr_Sequence eis_select;
				/* Seuqunce of attributes used to show  */
				/* which TYPES are wanted               */
    char        eis_infotypes;
#define EIS_ATTRIBUTETYPESONLY 0
#define EIS_ATTRIBUTESANDVALUES 1
}entryinfoselection, EntryInfoSelection;

#endif