Lines Matching refs:server

35     struct sbus_connection *server;
61 ret = sbus_init_connection(ncd->server, ncd->server->ev, dbus_conn,
79 ret = ncd->server->srv_init_fn(conn, ncd->server->srv_init_data);
108 /* Perhaps cruft after a previous server? */
186 * Set up a D-BUS server, integrate with the event loop
199 struct sbus_connection *server;
223 /* Set up D-BUS server */
299 server = talloc_zero(tmp_ctx, struct sbus_connection);
300 if (!server) {
305 server->ev = ev;
306 server->type = SBUS_SERVER;
307 server->dbus.server = dbus_server;
308 server->srv_init_fn = init_fn;
309 server->srv_init_data = init_pvt_data;
311 talloc_set_destructor((TALLOC_CTX *)server, sbus_server_destructor);
314 server->symlink = talloc_strdup(server, symlink_filename);
315 if (!server->symlink) {
321 /* This structure must be alive while server is alive. That's the
322 * reason for using server as its talloc context.
324 ncd = talloc_zero((TALLOC_CTX *)server, struct new_connection_data);
329 ncd->server = server;
333 dbus_server_set_new_connection_function(server->dbus.server,
338 dbret = dbus_server_set_watch_functions(server->dbus.server,
342 server, NULL);
345 "Error setting up D-BUS server watch functions\n");
351 dbret = dbus_server_set_timeout_functions(server->dbus.server,
355 server, NULL);
358 "Error setting up D-BUS server timeout functions\n");
359 dbus_server_set_watch_functions(server->dbus.server,
365 *_server = talloc_steal(mem_ctx, server);
385 struct sbus_connection *server;
388 server = talloc_get_type(ctx, struct sbus_connection);
389 dbus_server_disconnect(server->dbus.server);
391 if (server->symlink) {
392 ret = remove_socket_symlink(server->symlink);
395 "Could not remove the server symlink\n");