Lines Matching defs:smcConn

48 set_callbacks(SmcConn smcConn, unsigned long mask, SmcCallbacks *callbacks);
59 SmcConn smcConn;
137 if ((smcConn = malloc (sizeof (struct _SmcConn))) == NULL)
148 (IcePointer) smcConn,
157 free (smcConn);
168 free (smcConn);
177 smcConn->iceConn = iceConn;
178 smcConn->proto_major_version = majorVersion;
179 smcConn->proto_minor_version = minorVersion;
180 smcConn->vendor = vendor;
181 smcConn->release = release;
182 smcConn->client_id = NULL;
184 bzero ((char *) &smcConn->callbacks, sizeof (SmcCallbacks));
185 set_callbacks (smcConn, mask, callbacks);
187 smcConn->interact_waits = NULL;
188 smcConn->phase2_wait = NULL;
189 smcConn->prop_reply_waits = NULL;
191 smcConn->save_yourself_in_progress = False;
192 smcConn->shutdown_in_progress = False;
236 free (smcConn->vendor);
237 free (smcConn->release);
238 free (smcConn);
252 smcConn->client_id = strdup (*clientIdRet);
284 return (smcConn);
291 SmcCloseConnection(SmcConn smcConn, int count, char **reasonMsgs)
293 IceConn iceConn = smcConn->iceConn;
332 if (smcConn->vendor)
333 free (smcConn->vendor);
335 if (smcConn->release)
336 free (smcConn->release);
338 if (smcConn->client_id)
339 free (smcConn->client_id);
341 if (smcConn->interact_waits)
343 _SmcInteractWait *ptr = smcConn->interact_waits;
354 if (smcConn->phase2_wait)
355 free (smcConn->phase2_wait);
357 if (smcConn->prop_reply_waits)
359 _SmcPropReplyWait *ptr = smcConn->prop_reply_waits;
371 free (smcConn);
387 SmcModifyCallbacks(SmcConn smcConn, unsigned long mask, SmcCallbacks *callbacks)
389 set_callbacks (smcConn, mask, callbacks);
396 SmcSetProperties(SmcConn smcConn, int numProps, SmProp **props)
398 IceConn iceConn = smcConn->iceConn;
423 SmcDeleteProperties(SmcConn smcConn, int numProps, char **propNames)
425 IceConn iceConn = smcConn->iceConn;
464 SmcGetProperties(SmcConn smcConn, SmcPropReplyProc propReplyProc,
467 IceConn iceConn = smcConn->iceConn;
479 ptr = smcConn->prop_reply_waits;
484 smcConn->prop_reply_waits = wait;
498 SmcInteractRequest(SmcConn smcConn, int dialogType,
501 IceConn iceConn = smcConn->iceConn;
514 ptr = smcConn->interact_waits;
519 smcConn->interact_waits = wait;
537 SmcInteractDone(SmcConn smcConn, Bool cancelShutdown)
539 IceConn iceConn = smcConn->iceConn;
554 SmcRequestSaveYourself(SmcConn smcConn, int saveType, Bool shutdown,
557 IceConn iceConn = smcConn->iceConn;
576 SmcRequestSaveYourselfPhase2(SmcConn smcConn,
580 IceConn iceConn = smcConn->iceConn;
583 if (smcConn->phase2_wait)
584 wait = smcConn->phase2_wait;
596 smcConn->phase2_wait = wait;
608 SmcSaveYourselfDone(SmcConn smcConn, Bool success)
610 IceConn iceConn = smcConn->iceConn;
625 set_callbacks(SmcConn smcConn, unsigned long mask, SmcCallbacks *callbacks)
629 smcConn->callbacks.save_yourself.callback =
631 smcConn->callbacks.save_yourself.client_data =
637 smcConn->callbacks.die.callback = callbacks->die.callback;
638 smcConn->callbacks.die.client_data = callbacks->die.client_data;
643 smcConn->callbacks.save_complete.callback =
645 smcConn->callbacks.save_complete.client_data =
651 smcConn->callbacks.shutdown_cancelled.callback =
653 smcConn->callbacks.shutdown_cancelled.client_data =