diff options
author | cvsadm <cvsadm> | 2005-01-21 00:44:34 +0000 |
---|---|---|
committer | cvsadm <cvsadm> | 2005-01-21 00:44:34 +0000 |
commit | b2093e3016027d6b5cf06b3f91f30769bfc099e2 (patch) | |
tree | cf58939393a9032182c4fbc4441164a9456e82f8 /ldap/servers/slapd/http.h | |
download | ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.tar.gz ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.tar.xz ds-b2093e3016027d6b5cf06b3f91f30769bfc099e2.zip |
Moving NSCP Directory Server from DirectoryBranch to TRUNK, initial drop. (foxworth)ldapserver7x
Diffstat (limited to 'ldap/servers/slapd/http.h')
-rw-r--r-- | ldap/servers/slapd/http.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/ldap/servers/slapd/http.h b/ldap/servers/slapd/http.h new file mode 100644 index 00000000..7c1654a5 --- /dev/null +++ b/ldap/servers/slapd/http.h @@ -0,0 +1,43 @@ +/** + * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to + * license terms. Copyright 2001 Sun Microsystems, Inc. + * Some preexisting portions Copyright 2001 Netscape Communications Corp. + * All rights reserved. + */ + +#ifndef _HTTP_H_ +#define _HTTP_H_ + +/* mechanics */ + + +typedef void (*api_http_init)(); +typedef int (*api_get_http_text)(char *url, char *text_data); +typedef int (*api_get_http_binary)(char *url, char* bin_data, int *len); +typedef void (*api_http_shutdown)(); + +/* API ID for http_apib_get_interface */ + +#define HTTP_v1_0_GUID "0A340151-6FB3-11d3-80D2-006008A6EFF3" + +/* API */ + +/* the api broker reserves api[0] for its use */ + +#define http_init() \ + ((api_http_init*)(api))[1]() + +#define get_http_text(url, text_data) \ + ((api_get_http_text*)(api))[2]( url, text_data) + +#define get_http_binary(url, bin_data, len) \ + ((api_get_http_binary*)(api))[3](url,bin_data, len) + +#define set_http_shutdown() \ + ((api_http_shutdown*)(api))[4]() + +/* HTTP to be passed to http_register() by presence sps*/ +#define http_api(api) api[5] + + +#endif /*_HTTP_H_*/ |