Lines Matching refs:connection

57     SmcConn connection;
64 IceConn connection;
68 static void* ice_io_cb_data_new(IceConn connection, struct userdata *userdata) {
71 data->connection = connection;
92 if (u->connection) {
93 SmcCloseConnection(u->connection, 0, NULL);
94 u->connection = NULL;
113 if (userdata->connection) {
114 SmcCloseConnection(userdata->connection, 0, NULL);
115 userdata->connection = NULL;
121 static void die_cb(SmcConn connection, SmPointer client_data) {
131 static void save_complete_cb(SmcConn connection, SmPointer client_data) {
134 static void shutdown_cancelled_cb(SmcConn connection, SmPointer client_data) {
135 SmcSaveYourselfDone(connection, True);
138 static void save_yourself_cb(SmcConn connection, SmPointer client_data, int save_type, Bool _shutdown, int interact_style, Bool fast) {
139 SmcSaveYourselfDone(connection, True);
147 if (IceProcessMessages(io_data->connection, NULL, NULL) == IceProcessMessagesIOError) {
150 IceSetShutdownNegotiation(io_data->connection, False);
152 /* SM owns this connection, close via SmcCloseConnection() */
157 static void new_ice_connection(IceConn connection, IcePointer client_data, Bool opening, IcePointer *watch_data) {
165 IceConnectionNumber(connection),
168 ice_io_cb_data_new(connection, u));
219 u->connection = NULL;
259 if (!(u->connection = SmcOpenConnection(
266 pa_log("Failed to open connection to session manager: %s", t);
287 SmcSetProperties(u->connection, PA_ELEMENTSOF(prop_list), prop_list);
289 pa_log_info("Connected to session manager '%s' as '%s'.", vendor = SmcVendor(u->connection), client_id);
343 if (u->connection)
344 SmcCloseConnection(u->connection, 0, NULL);