Lines Matching defs:handle

65  * The mlsvc_handle_t is a wrapper that is used to associate an RPC handle
66 * with the client context for an instance of the interface. The handle
67 * is zeroed to ensure that it doesn't look like a valid handle -
68 * handle content is provided by the remove service.
70 * The client points to this top-level handle so that we know when to
71 * unbind and teardown the connection. As each handle is initialized it
85 ndr_rpc_bind(mlsvc_handle_t *handle, char *server, char *domain,
96 if (handle == NULL || server == NULL || server[0] == '\0' ||
125 * Setup smbfs library handle, authenticate, connect to
165 * Setup the RPC client handle.
173 clnt->handle = &handle->handle;
192 * Fill in the caller's handle.
194 bzero(&handle->handle, sizeof (ndr_hdid_t));
195 handle->clnt = clnt;
196 bcopy(&svinfo, &handle->svinfo, sizeof (srvsvc_server_info_t));
224 handle->clnt = NULL;
248 ndr_rpc_unbind(mlsvc_handle_t *handle)
250 ndr_client_t *clnt = handle->clnt;
261 bzero(handle, sizeof (mlsvc_handle_t));
266 * identified by the handle, which should have been initialized by
274 ndr_rpc_call(mlsvc_handle_t *handle, int opnum, void *params)
276 ndr_client_t *clnt = handle->clnt;
279 if (ndr_rpc_get_heap(handle) == NULL)
291 ndr_rpc_release(handle);
302 ndr_rpc_set_nonull(mlsvc_handle_t *handle)
304 handle->clnt->nonull = B_TRUE;
311 ndr_rpc_server_info(mlsvc_handle_t *handle)
313 return (&handle->svinfo);
320 ndr_rpc_server_os(mlsvc_handle_t *handle)
322 return (handle->svinfo.sv_os);
326 * Get the session key from a bound RPC client handle.
337 ndr_rpc_get_ssnkey(mlsvc_handle_t *handle,
340 ndr_client_t *clnt = handle->clnt;
351 ndr_rpc_malloc(mlsvc_handle_t *handle, size_t size)
355 if ((heap = ndr_rpc_get_heap(handle)) == NULL)
362 ndr_rpc_get_heap(mlsvc_handle_t *handle)
364 ndr_client_t *clnt = handle->clnt;
379 ndr_rpc_release(mlsvc_handle_t *handle)
381 ndr_client_t *clnt = handle->clnt;
392 * Returns true if the handle is null.
396 ndr_is_null_handle(mlsvc_handle_t *handle)
400 if (handle == NULL || handle->clnt == NULL)
403 if (!memcmp(&handle->handle, &zero_handle, sizeof (ndr_hdid_t)))
410 * Returns true if the handle is the top level bind handle.
414 ndr_is_bind_handle(mlsvc_handle_t *handle)
416 return (handle->clnt->handle == &handle->handle);
430 ndr_rpc_status(mlsvc_handle_t *handle, int opnum, DWORD status)
451 if (handle) {
452 svc = handle->clnt->binding->service;