Rename null_variant to uninit_variant
[hiphop-php.git] / hphp / runtime / ext / ldap / ext_ldap.h
blobba592176afcaebd4d4e57b44938e039c17a309a7
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-2016 Facebook, Inc. (http://www.facebook.com) |
6 | Copyright (c) 1997-2010 The PHP Group |
7 +----------------------------------------------------------------------+
8 | This source file is subject to version 3.01 of the PHP license, |
9 | that is bundled with this package in the file LICENSE, and is |
10 | available through the world-wide-web at the following url: |
11 | http://www.php.net/license/3_01.txt |
12 | If you did not receive a copy of the PHP license and are unable to |
13 | obtain it through the world-wide-web, please send a note to |
14 | license@php.net so we can mail you a copy immediately. |
15 +----------------------------------------------------------------------+
18 #ifndef incl_HPHP_EXT_LDAP_H_
19 #define incl_HPHP_EXT_LDAP_H_
21 #include "hphp/runtime/ext/extension.h"
23 namespace HPHP {
24 ///////////////////////////////////////////////////////////////////////////////
26 Variant HHVM_FUNCTION(ldap_connect,
27 const Variant& hostname = uninit_variant,
28 int port = 389);
29 Variant HHVM_FUNCTION(ldap_explode_dn,
30 const String& dn,
31 int with_attrib);
32 Variant HHVM_FUNCTION(ldap_dn2ufn,
33 const String& db);
34 String HHVM_FUNCTION(ldap_err2str,
35 int errnum);
36 bool HHVM_FUNCTION(ldap_add,
37 const Resource& link,
38 const String& dn,
39 const Array& entry);
40 bool HHVM_FUNCTION(ldap_mod_add,
41 const Resource& link,
42 const String& dn,
43 const Array& entry);
44 bool HHVM_FUNCTION(ldap_mod_del,
45 const Resource& link,
46 const String& dn,
47 const Array& entry);
48 bool HHVM_FUNCTION(ldap_mod_replace,
49 const Resource& link,
50 const String& dn,
51 const Array& entry);
52 bool HHVM_FUNCTION(ldap_modify,
53 const Resource& link,
54 const String& dn,
55 const Array& entry);
56 bool HHVM_FUNCTION(ldap_modify_batch,
57 const Resource& link,
58 const String& dn,
59 const Array& modifs);
60 bool HHVM_FUNCTION(ldap_bind,
61 const Resource& link,
62 const Variant& bind_rdn = uninit_variant,
63 const Variant& bind_password = uninit_variant);
64 bool HHVM_FUNCTION(ldap_set_rebind_proc,
65 const Resource& link,
66 const Variant& callback);
67 bool HHVM_FUNCTION(ldap_sort,
68 const Resource& link,
69 const Resource& result,
70 const String& sortfilter);
71 bool HHVM_FUNCTION(ldap_start_tls,
72 const Resource& link);
73 bool HHVM_FUNCTION(ldap_unbind,
74 const Resource& link);
75 bool HHVM_FUNCTION(ldap_get_option,
76 const Resource& link,
77 int option,
78 VRefParam retval);
79 bool HHVM_FUNCTION(ldap_set_option,
80 const Variant& link,
81 int option,
82 const Variant& newval);
83 bool HHVM_FUNCTION(ldap_close,
84 const Resource& link);
85 Variant HHVM_FUNCTION(ldap_list,
86 const Variant& link,
87 const Variant& base_dn,
88 const Variant& filter,
89 const Variant& attributes = uninit_variant,
90 int attrsonly = 0,
91 int sizelimit = -1,
92 int timelimit = -1,
93 int deref = -1);
94 Variant HHVM_FUNCTION(ldap_read,
95 const Variant& link,
96 const Variant& base_dn,
97 const Variant& filter,
98 const Variant& attributes = uninit_variant,
99 int attrsonly = 0,
100 int sizelimit = -1,
101 int timelimit = -1,
102 int deref = -1);
103 Variant HHVM_FUNCTION(ldap_search,
104 const Variant& link,
105 const Variant& base_dn,
106 const Variant& filter,
107 const Variant& attributes = uninit_variant,
108 int attrsonly = 0,
109 int sizelimit = -1,
110 int timelimit = -1,
111 int deref = -1);
112 bool HHVM_FUNCTION(ldap_rename,
113 const Resource& link,
114 const String& dn,
115 const String& newrdn,
116 const String& newparent,
117 bool deleteoldrdn);
118 bool HHVM_FUNCTION(ldap_delete,
119 const Resource& link,
120 const String& dn);
121 Variant HHVM_FUNCTION(ldap_compare,
122 const Resource& link,
123 const String& dn,
124 const String& attribute,
125 const String& value);
126 Variant HHVM_FUNCTION(ldap_errno,
127 const Resource& link);
128 Variant HHVM_FUNCTION(ldap_error,
129 const Resource& link);
130 Variant HHVM_FUNCTION(ldap_get_dn,
131 const Resource& link,
132 const Resource& result_entry);
133 Variant HHVM_FUNCTION(ldap_count_entries,
134 const Resource& link,
135 const Resource& result);
136 Variant HHVM_FUNCTION(ldap_get_entries,
137 const Resource& link,
138 const Resource& result);
139 Variant HHVM_FUNCTION(ldap_first_entry,
140 const Resource& link,
141 const Resource& result);
142 Variant HHVM_FUNCTION(ldap_next_entry,
143 const Resource& link,
144 const Resource& result_entry);
145 Variant HHVM_FUNCTION(ldap_get_attributes,
146 const Resource& link,
147 const Resource& result_entry);
148 Variant HHVM_FUNCTION(ldap_first_attribute,
149 const Resource& link,
150 const Resource& result_entry);
151 Variant HHVM_FUNCTION(ldap_next_attribute,
152 const Resource& link,
153 const Resource& result_entry);
154 Variant HHVM_FUNCTION(ldap_first_reference,
155 const Resource& link,
156 const Resource& result);
157 Variant HHVM_FUNCTION(ldap_next_reference,
158 const Resource& link,
159 const Resource& result_entry);
160 bool HHVM_FUNCTION(ldap_parse_reference,
161 const Resource& link,
162 const Resource& result_entry,
163 VRefParam referrals);
164 bool HHVM_FUNCTION(ldap_parse_result,
165 const Resource& link,
166 const Resource& result,
167 VRefParam errcode,
168 VRefParam matcheddn = uninit_null(),
169 VRefParam errmsg = uninit_null(),
170 VRefParam referrals = uninit_null());
171 bool HHVM_FUNCTION(ldap_free_result,
172 const Resource& result);
173 Variant HHVM_FUNCTION(ldap_get_values_len,
174 const Resource& link,
175 const Resource& result_entry,
176 const String& attribute);
177 Variant HHVM_FUNCTION(ldap_get_values,
178 const Resource& link,
179 const Resource& result_entry,
180 const String& attribute);
181 bool HHVM_FUNCTION(ldap_control_paged_result,
182 const Resource& link,
183 int pagesize,
184 bool iscritical = false,
185 const String& cookie = empty_string_ref);
186 bool HHVM_FUNCTION(ldap_control_paged_result_response,
187 const Resource& link,
188 const Resource& result,
189 VRefParam cookie = uninit_null(),
190 VRefParam estimated = uninit_null());
191 String HHVM_FUNCTION(ldap_escape,
192 const String& value,
193 const String& ignores = empty_string(),
194 int flags = 0);
196 ///////////////////////////////////////////////////////////////////////////////
199 #endif // incl_HPHP_EXT_LDAP_H_