version 1.1.3.1.20.2, 1998/10/24 23:04:47
|
version 1.13, 2001/05/29 01:29:57
|
Line 1
|
Line 1
|
|
/* $OpenLDAP: pkg/ldap/include/disptmpl.h,v 1.12 2000/06/18 17:48:08 kurt Exp $ */ |
/* |
/* |
|
* Copyright 1998-2001 The OpenLDAP Foundation, Redwood City, California, USA |
|
* All rights reserved. |
|
* |
|
* Redistribution and use in source and binary forms, with or without |
|
* modification, are permitted only as authorized by the OpenLDAP |
|
* Public License. A copy of this license is available at |
|
* http://www.OpenLDAP.org/license.html or in file LICENSE in the |
|
* top-level directory of the distribution. |
|
*/ |
|
/* Portions |
* Copyright (c) 1993, 1994 Regents of the University of Michigan. |
* Copyright (c) 1993, 1994 Regents of the University of Michigan. |
* All rights reserved. |
* All rights reserved. |
* |
* |
Line 122 struct ldap_tmplitem {
|
Line 133 struct ldap_tmplitem {
|
}; |
}; |
|
|
|
|
#define NULLTMPLITEM ((struct ldap_tmplitem *)0) |
|
|
|
#define LDAP_SET_TMPLITEM_APPDATA( ti, datap ) \ |
#define LDAP_SET_TMPLITEM_APPDATA( ti, datap ) \ |
( (ti)->ti_appdata = (void *)(datap) ) |
( (ti)->ti_appdata = (void *)(datap) ) |
|
|
Line 142 struct ldap_oclist {
|
Line 151 struct ldap_oclist {
|
struct ldap_oclist *oc_next; |
struct ldap_oclist *oc_next; |
}; |
}; |
|
|
#define NULLOCLIST ((struct ldap_oclist *)0) |
|
|
|
|
|
/* |
/* |
* add defaults list |
* add defaults list |
Line 157 struct ldap_adddeflist {
|
Line 164 struct ldap_adddeflist {
|
struct ldap_adddeflist *ad_next; |
struct ldap_adddeflist *ad_next; |
}; |
}; |
|
|
#define NULLADLIST ((struct ldap_adddeflist *)0) |
|
|
|
|
|
/* |
/* |
* display template global options |
* display template global options |
Line 198 struct ldap_disptmpl {
|
Line 203 struct ldap_disptmpl {
|
struct ldap_disptmpl *dt_next; |
struct ldap_disptmpl *dt_next; |
}; |
}; |
|
|
#define NULLDISPTMPL ((struct ldap_disptmpl *)0) |
|
|
|
#define LDAP_SET_DISPTMPL_APPDATA( dt, datap ) \ |
#define LDAP_SET_DISPTMPL_APPDATA( dt, datap ) \ |
( (dt)->dt_appdata = (void *)(datap) ) |
( (dt)->dt_appdata = (void *)(datap) ) |
|
|
Line 220 struct ldap_disptmpl {
|
Line 223 struct ldap_disptmpl {
|
#define LDAP_DTMPL_BUFSIZ 8192 |
#define LDAP_DTMPL_BUFSIZ 8192 |
|
|
|
|
typedef int (*writeptype) LDAP_P(( void *writeparm, char *p, int len )); |
typedef int (*ldap_writeptype) LDAP_P(( |
|
void *writeparm, char *p, ber_len_t len )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_init_templates LDAP_P(( char *file, struct ldap_disptmpl **tmpllistp )); |
ldap_init_templates LDAP_P(( char *file, struct ldap_disptmpl **tmpllistp )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_init_templates_buf LDAP_P(( char *buf, |
ldap_init_templates_buf LDAP_P(( char *buf, |
long buflen, |
ber_len_t buflen, |
struct ldap_disptmpl **tmpllistp )); |
struct ldap_disptmpl **tmpllistp )); |
|
|
LDAP_F void |
LDAP_F( void ) |
ldap_free_templates LDAP_P(( struct ldap_disptmpl *tmpllist )); |
ldap_free_templates LDAP_P(( struct ldap_disptmpl *tmpllist )); |
|
|
LDAP_F struct ldap_disptmpl * |
LDAP_F( struct ldap_disptmpl * ) |
ldap_first_disptmpl LDAP_P(( struct ldap_disptmpl *tmpllist )); |
ldap_first_disptmpl LDAP_P(( struct ldap_disptmpl *tmpllist )); |
|
|
LDAP_F struct ldap_disptmpl * |
LDAP_F( struct ldap_disptmpl * ) |
ldap_next_disptmpl LDAP_P(( struct ldap_disptmpl *tmpllist, |
ldap_next_disptmpl LDAP_P(( struct ldap_disptmpl *tmpllist, |
struct ldap_disptmpl *tmpl )); |
struct ldap_disptmpl *tmpl )); |
|
|
LDAP_F struct ldap_disptmpl * |
LDAP_F( struct ldap_disptmpl * ) |
ldap_name2template LDAP_P(( char *name, |
ldap_name2template LDAP_P(( char *name, |
struct ldap_disptmpl *tmpllist )); |
struct ldap_disptmpl *tmpllist )); |
|
|
LDAP_F struct ldap_disptmpl * |
LDAP_F( struct ldap_disptmpl * ) |
ldap_oc2template LDAP_P(( char **oclist, |
ldap_oc2template LDAP_P(( char **oclist, |
struct ldap_disptmpl *tmpllist )); |
struct ldap_disptmpl *tmpllist )); |
|
|
LDAP_F char ** |
LDAP_F( char ** ) |
ldap_tmplattrs LDAP_P(( struct ldap_disptmpl *tmpl, |
ldap_tmplattrs LDAP_P(( struct ldap_disptmpl *tmpl, |
char **includeattrs, |
char **includeattrs, |
int exclude, |
int exclude, |
unsigned long syntaxmask )); |
unsigned long syntaxmask )); |
|
|
LDAP_F struct ldap_tmplitem * |
LDAP_F( struct ldap_tmplitem * ) |
ldap_first_tmplrow LDAP_P(( struct ldap_disptmpl *tmpl )); |
ldap_first_tmplrow LDAP_P(( struct ldap_disptmpl *tmpl )); |
|
|
LDAP_F struct ldap_tmplitem * |
LDAP_F( struct ldap_tmplitem * ) |
ldap_next_tmplrow LDAP_P(( struct ldap_disptmpl *tmpl, |
ldap_next_tmplrow LDAP_P(( struct ldap_disptmpl *tmpl, |
struct ldap_tmplitem *row )); |
struct ldap_tmplitem *row )); |
|
|
LDAP_F struct ldap_tmplitem * |
LDAP_F( struct ldap_tmplitem * ) |
ldap_first_tmplcol LDAP_P(( struct ldap_disptmpl *tmpl, |
ldap_first_tmplcol LDAP_P(( struct ldap_disptmpl *tmpl, |
struct ldap_tmplitem *row )); |
struct ldap_tmplitem *row )); |
|
|
LDAP_F struct ldap_tmplitem * |
LDAP_F( struct ldap_tmplitem * ) |
ldap_next_tmplcol LDAP_P(( struct ldap_disptmpl *tmpl, |
ldap_next_tmplcol LDAP_P(( struct ldap_disptmpl *tmpl, |
struct ldap_tmplitem *row, |
struct ldap_tmplitem *row, |
struct ldap_tmplitem *col )); |
struct ldap_tmplitem *col )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_entry2text LDAP_P(( LDAP *ld, |
ldap_entry2text LDAP_P(( LDAP *ld, |
char *buf, LDAPMessage *entry, |
char *buf, LDAPMessage *entry, |
struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, |
struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, |
writeptype writeproc, void *writeparm, char *eol, int rdncount, |
ldap_writeptype writeproc, void *writeparm, char *eol, int rdncount, |
unsigned long opts )); |
unsigned long opts )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_vals2text LDAP_P(( LDAP *ld, |
ldap_vals2text LDAP_P(( LDAP *ld, |
char *buf, char **vals, char *label, int labelwidth, |
char *buf, char **vals, char *label, int labelwidth, |
unsigned long syntaxid, writeptype writeproc, void *writeparm, |
unsigned long syntaxid, ldap_writeptype writeproc, void *writeparm, |
char *eol, int rdncount )); |
char *eol, int rdncount )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_entry2text_search LDAP_P(( LDAP *ld, |
ldap_entry2text_search LDAP_P(( LDAP *ld, |
char *dn, char *base, LDAPMessage *entry, |
char *dn, char *base, LDAPMessage *entry, |
struct ldap_disptmpl *tmpllist, char **defattrs, char ***defvals, |
struct ldap_disptmpl *tmpllist, char **defattrs, char ***defvals, |
writeptype writeproc, void *writeparm, char *eol, int rdncount, |
ldap_writeptype writeproc, void *writeparm, char *eol, int rdncount, |
unsigned long opts )); |
unsigned long opts )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_entry2html LDAP_P(( LDAP *ld, |
ldap_entry2html LDAP_P(( LDAP *ld, |
char *buf, LDAPMessage *entry, |
char *buf, LDAPMessage *entry, |
struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, |
struct ldap_disptmpl *tmpl, char **defattrs, char ***defvals, |
writeptype writeproc, void *writeparm, char *eol, int rdncount, |
ldap_writeptype writeproc, void *writeparm, char *eol, int rdncount, |
unsigned long opts, char *urlprefix, char *base )); |
unsigned long opts, char *urlprefix, char *base )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_vals2html LDAP_P(( LDAP *ld, |
ldap_vals2html LDAP_P(( LDAP *ld, |
char *buf, char **vals, char *label, int labelwidth, |
char *buf, char **vals, char *label, int labelwidth, |
unsigned long syntaxid, writeptype writeproc, void *writeparm, |
unsigned long syntaxid, ldap_writeptype writeproc, void *writeparm, |
char *eol, int rdncount, char *urlprefix )); |
char *eol, int rdncount, char *urlprefix )); |
|
|
LDAP_F int |
LDAP_F( int ) |
ldap_entry2html_search LDAP_P(( LDAP |
ldap_entry2html_search LDAP_P(( LDAP |
*ld, char *dn, char *base, LDAPMessage *entry, |
*ld, char *dn, char *base, LDAPMessage *entry, |
struct ldap_disptmpl *tmpllist, char **defattrs, char ***defvals, |
struct ldap_disptmpl *tmpllist, char **defattrs, char ***defvals, |
writeptype writeproc, void *writeparm, char *eol, int rdncount, |
ldap_writeptype writeproc, void *writeparm, char *eol, int rdncount, |
unsigned long opts, char *urlprefix )); |
unsigned long opts, char *urlprefix )); |
|
|
LDAP_END_DECL |
LDAP_END_DECL |