Lines Matching defs:request

84 	// prepare the request
85 BMessage request(NETFS_REQUEST_SAVE_SETTINGS);
87 // send the request
88 return _SendRequest(&request);
102 // prepare the request
103 BMessage request(NETFS_REQUEST_ADD_USER);
104 if (request.AddString("user", user) != B_OK
105 || (password && request.AddString("password", password) != B_OK)) {
109 // send the request
110 return _SendRequest(&request);
121 // prepare the request
122 BMessage request(NETFS_REQUEST_REMOVE_USER);
123 if (request.AddString("user", user) != B_OK)
126 // send the request
127 return _SendRequest(&request);
138 // prepare the request
139 BMessage request(NETFS_REQUEST_GET_USERS);
141 // send the request
143 status_t error = _SendRequest(&request, &reply);
162 // prepare the request
163 BMessage request(NETFS_REQUEST_GET_USER_STATISTICS);
164 if (request.AddString("user", user) != B_OK)
167 // send the request
169 status_t error = _SendRequest(&request, &reply);
191 // prepare the request
192 BMessage request(NETFS_REQUEST_ADD_SHARE);
193 if (request.AddString("share", share) != B_OK
194 || request.AddString("path", path) != B_OK) {
198 // send the request
199 return _SendRequest(&request);
210 // prepare the request
211 BMessage request(NETFS_REQUEST_REMOVE_SHARE);
212 if (request.AddString("share", share) != B_OK)
215 // send the request
216 return _SendRequest(&request);
227 // prepare the request
228 BMessage request(NETFS_REQUEST_GET_SHARES);
230 // send the request
232 status_t error = _SendRequest(&request, &reply);
251 // prepare the request
252 BMessage request(NETFS_REQUEST_GET_SHARE_USERS);
253 if (request.AddString("share", share) != B_OK)
256 // send the request
258 status_t error = _SendRequest(&request, &reply);
277 // prepare the request
278 BMessage request(NETFS_REQUEST_GET_SHARE_STATISTICS);
279 if (request.AddString("share", share) != B_OK)
282 // send the request
284 status_t error = _SendRequest(&request, &reply);
307 // prepare the request
308 BMessage request(NETFS_REQUEST_SET_USER_PERMISSIONS);
309 if (request.AddString("share", share) != B_OK
310 || request.AddString("user", user) != B_OK
311 || request.AddInt32("permissions", (int32)permissions)) {
315 // send the request
316 return _SendRequest(&request);
330 // prepare the request
331 BMessage request(NETFS_REQUEST_GET_USER_PERMISSIONS);
332 if (request.AddString("share", share) != B_OK
333 || request.AddString("user", user) != B_OK) {
337 // send the request
339 status_t error = _SendRequest(&request, &reply);
365 // send a request to get the real messenger
366 BMessage request(NETFS_REQUEST_GET_MESSENGER);
368 if (appMessenger.SendMessage(&request, &reply) != B_OK)
387 NetFSServerRoster::_SendRequest(BMessage* request, BMessage* reply)
399 // send the request
400 error = fServerMessenger.SendMessage(request, reply);