From 62bc296fefd0465c1f3eef283f3bf0a43d132ef9 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 21 Oct 2010 16:17:09 -0700 Subject: SMlib.xml: Convert function prototypes to tags Provides automatic ansifaction & better formatted output Signed-off-by: Alan Coopersmith --- doc/SMlib.xml | 936 +++++++++++++++++++++++++--------------------------------- 1 file changed, 397 insertions(+), 539 deletions(-) diff --git a/doc/SMlib.xml b/doc/SMlib.xml index 9d5d7c4..5faa752 100644 --- a/doc/SMlib.xml +++ b/doc/SMlib.xml @@ -114,21 +114,21 @@ To open a connection with a session manager, use SmcOpenConnection -SmcConn SmcOpenConnection(network_ids_list, context, xsmp_major_rev, xsmp_minor_rev, - -mask, callbacks, previous_id, client_id_ret, error_length, error_string_ret) - - char *network_ids_list; - SmPointer context; - int xsmp_major_rev; - int xsmp_minor_rev; - unsigned long mask; - SmcCallbacks *callbacks; - char *previous_id; - char **client_id_ret; - int error_length; - char *error_string_ret; - + + + SmcConn SmcOpenConnection + char *network_ids_list + SmPointer context + int xsmp_major_rev + int xsmp_minor_rev + unsigned long mask + SmcCallbacks *callbacks + char *previous_id + char **client_id_ret + int error_length + char *error_string_ret + + Specifies the network ID(s) of the session manager. @@ -258,7 +258,7 @@ typedef struct { - void SaveYourselfProc + typedef void (*SaveYourselfProc) SmcConn smc_conn SmcConn client_data int save_type @@ -321,7 +321,7 @@ typedef struct { - void DieProc + typedef void (*SmcDieProc) SmcConn smc_conn SmcConn client_data @@ -347,19 +347,13 @@ typedef struct { The Save Complete callback is of type SmcSaveCompleteProc - - -typedef void (*SmcSaveCompleteProc)(); - - + + typedef void (*SmcSaveCompleteProc) + SmcConn smc_conn + SmPointer client_data + -void SaveCompleteProc(smc_conn, client_data) - - SmcConn smc_conn; - - SmPointer client_data; - @@ -379,19 +373,13 @@ void SaveCompleteProc(smc_conn, - -typedef void (*SmcShutdownCancelledProc)(); - - + + typedef void (*SmcShutdownCancelledProc) + SmcConn smc_conn + SmPointer client_data + -void ShutdownCancelledProc(smc_conn, client_data) - - SmcConn smc_conn; - - SmPointer client_data; - @@ -412,15 +400,14 @@ void ShutdownCancelledProc(smc_conn, To close a connection with a session manager, use SmcCloseConnection - -SmcCloseStatus SmcCloseConnection(smc_conn, count, reason_msgs) - - SmcConn smc_conn; - - int count; - - char **reason_msgs; - + + + SmcCloseStatus SmcCloseConnection + SmcConn smc_conn + int count + char **reason_msgs + + smc_conn @@ -456,15 +443,14 @@ SmcCloseStatus SmcCloseConnection(smc_conn, To modify callbacks set up in SmcOpenConnection use SmcModifyCallbacks - -void SmcModifyCallbacks(smc_conn, mask, callbacks) - - SmcConn smc_conn; - - unsigned long mask; - - SmcCallbacks *callbacks; - + + + void SmcModifyCallbacks + SmcConn smc_conn + unsigned long mask + SmcCallbacks *callbacks + + The session management connection object. @@ -496,15 +482,14 @@ void SmcModifyCallbacks(smc_conn, To set session management properties for this client, use SmcSetProperties - -void SmcSetProperties(smc_conn, num_props, props) - - SmcConn smc_conn; - - int num_props; - - SmProp **props; - + + + void SmcSetProperties + SmcConn smc_conn + int num_props + SmProp **props + + @@ -529,15 +514,14 @@ void SmcSetProperties(smc_conn, -void SmcDeleteProperties(smc_conn, num_props, prop_names) - - SmcConn smc_conn; - - int num_props; - - char **prop_names; - + + + void SmcDeleteProperties + SmcConn smc_conn + int num_props + char **prop_names + + smc_conn @@ -555,15 +539,14 @@ void SmcDeleteProperties(smc_conn, To get properties previously stored by the client, use SmcGetProperties - -Status SmcGetProperties(smc_conn, prop_reply_proc, client_data) - - SmcConn smc_conn; - - SmcPropReplyProc prop_reply_proc; - - SmPointer client_data; - + + + Status SmcGetProperties + SmcConn smc_conn + SmcPropReplyProc prop_reply_proc + SmPointer client_data + + @@ -584,23 +567,15 @@ Status SmcGetProperties(smc_conn, Note that the library does not block until the properties reply comes back. Rather, a callback of type SmcPropReplyProc is invoked when the data is ready. - - -typedef void (*SmcPropReplyProc)(); - - + + typedef void (*SmcPropReplyProc) + SmcConn smc_conn + SmPointer client_data + int num_props + SmProp **props + -void PropReplyProc(smc_conn, client_data, num_props, props) - - SmcConn smc_conn; - - SmPointer client_data; - - int num_props; - - SmProp **props; - @@ -629,17 +604,15 @@ void PropReplyProc(smc_conn, After receiving a “Save Yourself” message with an interact_style of SmInteractStyleErrors or SmInteractStyleAny the client may choose to interact with the user. Because only one client can interact with the user at a time, the client must call SmcInteractRequest and wait for an “Interact” message from the session manager. - -Status SmcInteractRequest(smc_conn, dialog_type, interact_proc, client_data) - - SmcConn smc_conn; - - int dialog_type; - - SmcInteractProc interact_proc; - - SmPointer client_data; - + + + Status SmcInteractRequest + SmcConn smc_conn + int dialog_type + SmcInteractProc interact_proc + SmPointer client_data + + @@ -668,19 +641,13 @@ Status SmcInteractRequest(smc_conn, The SmcInteractProc callback will be invoked when the “Interact” message arrives from the session manager. - - -typedef void (*SmcInteractProc)(); - - + + typedef void (*SmcInteractProc) + SmcConn smc_conn + SmPointer client_data + -void InteractProc(smc_conn, client_data) - - SmcConn smc_conn; - - SmPointer client_data; - @@ -695,13 +662,13 @@ void InteractProc(smc_conn, c After interacting with the user (in response to an “Interact” message), you should call SmcInteractDone - -void SmcInteractDone(smc_conn, cancel_shutdown) - - SmcConn smc_conn; - - Bool cancel_shutdown; - + + + void SmcInteractDone + SmcConn smc_conn + Bool cancel_shutdown + + @@ -721,21 +688,17 @@ void SmcInteractDone(smc_conn, -void SmcRequestSaveYourself(smc_conn, save_type, shutdown, interact_style, fast, global) - - SmcConn smc_conn; - - int save_type; - - Bool shutdown; - - int interact_style; - - Bool fast; - - Bool global; - + + + void SmcRequestSaveYourself + SmcConn smc_conn + int save_type + Bool shutdown + int interact_style + Bool fast + Bool global + + @@ -777,15 +740,14 @@ void SmcRequestSaveYourself(smc_conn, In response to a ``Save Yourself, the client may request to be informed when all the other clients are quiescent so that it can save their state. To do so, use SmcRequestSaveYourselfPhase2 - -Status SmcRequestSaveYourselfPhase2(smc_conn, save_yourself_phase2_proc, client_data) - - SmcConn smc_conn; - - SmcSaveYourselfPhase2Proc save_yourself_phase2_proc; - - SmPointer client_data; - + + + Status SmcRequestSaveYourselfPhase2 + SmcConn smc_conn + SmcSaveYourselfPhase2Proc save_yourself_phase2_proc + SmPointer client_data + + @@ -812,13 +774,13 @@ Status SmcRequestSaveYourselfPhase2(smc_conn, After saving state in response to a “Save Yourself” message, you should call SmcSaveYourselfDone - -void SmcSaveYourselfDone(smc_conn, success) - - SmcConn smc_conn; - - Bool success; - + + + void SmcSaveYourselfDone + SmcConn smc_conn + Bool success + + @@ -837,52 +799,58 @@ void SmcSaveYourselfDone(smc_conn, Using Smc Informational Functions - -int SmcProtocolVersion(smc_conn) - - SmcConn smc_conn; - + + + int SmcProtocolVersion + SmcConn smc_conn + + SmcProtocolVersion returns the major version of the session management protocol associated with this session. - -int SmcProtocolRevision(smc_conn) - - SmcConn smc_conn; - + + + int SmcProtocolRevision + SmcConn smc_conn + + SmcProtocolRevision returns the minor version of the session management protocol associated with this session. - -char *SmcVendor(smc_conn) - - SmcConn smc_conn; - + + + char *SmcVendor + SmcConn smc_conn + + SmcVendor returns a string that provides some identification of the owner of the session manager. The string should be freed with a call to free - -char *SmcRelease(smc_conn) - - SmcConn smc_conn; - + + + char *SmcRelease + SmcConn smc_conn + + SmcRelease returns a string that provides the release number of the session manager. The string should be freed with a call to free - -char *SmcClientID(smc_conn) - - SmcConn smc_conn; - + + + char *SmcClientID + SmcConn smc_conn + + SmcClientID returns a null-terminated string for the client ID associated with this connection. This information was also returned in SmcOpenConnection (it is provided here for convenience). Call free on this pointer when the client ID is no longer needed. - -IceConn SmcGetIceConnection(smc_conn) - - SmcConn smc_conn; - + + + IceConn SmcGetIceConnection + SmcConn smc_conn + + SmcGetIceConnection returns the ICE connection object associated with this session management connection object. The ICE connection object can be used to get some additional information about the connection. Some of the more useful functions which can be used on the IceConn are IceConnectionNumber IceConnectionString IceLastSentSequenceNumber IceLastReceivedSequenceNumber and IcePing For further information, see the Inter-Client Exchange Library standard. @@ -892,11 +860,12 @@ IceConn SmcGetIceConnection(smc_conn) If the client receives an unexpected protocol error from the session manager, an error handler is invoked by SMlib. A default error handler exists that simply prints the error message to stderr and exits if the severity of the error is fatal. The client can change this error handler by calling the SmcSetErrorHandler function. - -SmcErrorHandler SmcSetErrorHandler(handler) - - SmcErrorHandler handler; - + + + SmcErrorHandler SmcSetErrorHandler + SmcErrorHandler handler + + The error handler. You should pass NULL to restore the default handler. @@ -904,29 +873,18 @@ SmcErrorHandler SmcSetErrorHandler(handler) The SmcErrorHandler has the following type: - - -typedef void (*SmcErrorHandler)(); - - + + typedef void (*SmcErrorHandler) + SmcConn smc_conn + Bool swap + int offending_minor_opcode + unsigned long offending_sequence_num + int error_class + int severity + IcePointer values + -void ErrorHandler(smc_conn, swap, offending_minor_opcode, offending_sequence_num, error_class, severity, values) - - SmcConn smc_conn; - - Bool swap; - - int offending_minor_opcode; - - unsigned long offending_sequence_num; - - int error_class; - - int severity; - - IcePointer values; - @@ -989,25 +947,18 @@ void ErrorHandler(smc_conn, s SmsInitialize is the first SMlib function that should be called by a session manager. It provides information about the session manager and registers a callback that will be invoked each time a new client connects to the session manager. - -Status SmsInitialize(vendor, release, new_client_proc, manager_data, host_based_auth_proc, - - error_length, error_string_ret) - - char *vendor; - - char *release; - - SmsNewClientProc new_client_proc; - - SmPointer manager_data; - - IceHostBasedAuthProc host_based_auth_proc; - - int error_length; - - char *error_string_ret; - + + + Status SmsInitialize + char *vendor + char *release + SmsNewClientProc new_client_proc + SmPointer manager_data + IceHostBasedAuthProc host_based_auth_proc + int error_length + char *error_string_ret + + @@ -1048,25 +999,16 @@ Status SmsInitialize(vendor, Each time a new client connects to the session manager, the SmsNewClientProc callback is invoked. The session manager obtains a new opaque connection object that it should use for all future interaction with the client. At this time, the session manager must also register a set of callbacks to respond to the different messages that the client might send. - - -typedef Status (*SmsNewClientProc)(); - - + + typedef Status (*SmsNewClientProc) + SmsConn sms_conn + SmPointer manager_data + unsigned long *mask_ret + SmsCallbacks *callbacks_ret + char **failure_reason_ret + -Status NewClientProc(sms_conn, manager_data, mask_ret, callbacks_ret, failure_reason_ret) - - SmsConn sms_conn; - - SmPointer manager_data; - - unsigned long *mask_ret; - - SmsCallbacks *callbacks_ret; - - char **failure_reason_ret; - @@ -1172,21 +1114,14 @@ typedef struct { The Register Client callback is the first callback that will be invoked after the client connects to the session manager. Its type is SmsRegisterClientProc - - -typedef Status (*SmsRegisterClientProc(); - - + + typedef Status (*SmsRegisterClientProc) + SmsConn sms_conn + SmPointer manager_data + char *previous_id + -Status RegisterClientProc(sms_conn, manager_data, previous_id) - - SmsConn sms_conn; - - SmPointer manager_data; - - char *previous_id; - @@ -1218,21 +1153,14 @@ If the client is first joining the session, previous_id will be NULL. The Interact Request callback is of type SmsInteractRequestProc - - -typedef void (*SmsInteractRequestProc)(); - - + + typedef void (*SmsInteractRequestProc) + SmsConn sms_conn + SmPointer manager_data + int dialog_type + -void InteractRequestProc(sms_conn, manager_data, dialog_type) - - SmsConn sms_conn; - - SmPointer manager_data; - - int dialog_type; - @@ -1261,21 +1189,14 @@ void InteractRequestProc(sms_conn, When the client is done interacting with the user, the SmsInteractDoneProc callback will be invoked. - - -typedef void (*SmsInteractDoneProc)(); - - + + typedef void (*SmsInteractDoneProc) + SmsConn sms_conn + SmPointer manager_data + Bool cancel_shutdown + -void InteractDoneProc(sms_conn, manager_data, cancel_shutdown) - - SmsConn sms_conn; - - SmPointer manager_data; - - Bool cancel_shutdown; - @@ -1303,29 +1224,18 @@ void InteractDoneProc(sms_conn, - -typedef void (*SmsSaveYourselfRequestProc)(); - - + + typedef void (*SaveYourselfRequestProc) + SmsConn sms_conn + SmPointer manager_data + int save_type + Bool shutdown + int interact_style + Bool fast + Bool global + -void SaveYourselfRequestProc(sms_conn, manager_data, save_type, shutdown, interact_style, fast, global) - - SmsConn sms_conn; - - SmPointer manager_data; - - int save_type; - - Bool shutdown; - - int interact_style; - - Bool fast; - - Bool global; - @@ -1368,19 +1278,13 @@ void SaveYourselfRequestProc(sms_conn, The Save Yourself Phase 2 Request callback is of type SmsSaveYourselfPhase2RequestProc - - -typedef void (*SmsSaveYourselfPhase2RequestProc)(); - - + + typedef void (*SmsSaveYourselfPhase2RequestProc) + SmsConn sms_conn + SmPointer manager_data + -void SmsSaveYourselfPhase2RequestProc(sms_conn, manager_data) - - SmsConn sms_conn; - - SmPointer manager_data; - @@ -1401,21 +1305,14 @@ void SmsSaveYourselfPhase2RequestProc(sms_conn, < When the client is done saving its state in response to a “Save Yourself” message, the SmsSaveYourselfDoneProc will be invoked. - - -typedef void (*SmsSaveYourselfDoneProc)(); - - + + typedef void (*SaveYourselfDoneProc) + SmsConn sms_conn + SmPointer manager_data + Bool success + -void SaveYourselfDoneProc(sms_conn, manager_data, success) - - SmsConn sms_conn; - - SmPointer manager_data; - - Bool success; - @@ -1440,23 +1337,15 @@ void SaveYourselfDoneProc(sms_conn, If the client properly terminates (that is, it calls SmcCloseConnection the SmsCloseConnectionProc callback is invoked. - - -typedef void (*SmsCloseConnectionProc)(); - - + + typedef void (*SmsCloseConnectionProc) + SmsConn sms_conn + SmPointer manager_data + int count + char **reason_msgs + -void CloseConnectionProc(sms_conn, manager_data, count, reason_msgs) - - SmsConn sms_conn; - - SmPointer manager_data; - - int count; - - char **reason_msgs; - sms_conn @@ -1486,23 +1375,15 @@ void CloseConnectionProc(sms_conn, When the client sets session management properties, the SmsSetPropertiesProc callback will be invoked. - - -typedef void (*SmsSetPropertiesProc)(); - - + + typedef void (*SmsSetPropertiesProc) + SmsConn sms_conn + SmPointer manager_data + int num_props + SmProp **props + -void SetPropertiesProc(sms_conn, manager_data, num_props, props) - - SmsConn sms_conn; - - SmPointer manager_data; - - int num_props; - - SmProp **props; - sms_conn @@ -1534,23 +1415,15 @@ void SetPropertiesProc(sms_conn, When the client deletes session management properties, the SmsDeletePropertiesProc callback will be invoked. - - -typedef void (*SmsDeletePropertiesProc)(); - - + + typedef void (*SmsDeletePropertiesProc) + SmsConn sms_conn + SmPointer manager_data + int num_props + char **prop_names + -void DeletePropertiesProc(sms_conn, manager_data, num_props, prop_names) - - SmsConn sms_conn; - - SmPointer manager_data; - - int num_props; - - char **prop_names; - @@ -1579,19 +1452,13 @@ void DeletePropertiesProc(sms_conn, The SmsGetPropertiesProc callback is invoked when the client wants to retrieve properties it set. - - -typedef void (*SmsGetPropertiesProc)(); - - + + typedef void (*SmsGetPropertiesProc) + SmsConn sms_conn + SmPointer manager_data + -void GetPropertiesProc(sms_conn, manager_data) - - SmsConn sms_conn; - - SmPointer manager_data; - @@ -1612,13 +1479,13 @@ void GetPropertiesProc(sms_conn, To register a client (in response to a SmsRegisterClientProc callback), use SmsRegisterClientReply - -Status SmsRegisterClientReply(sms_conn, client_id) - - SmsConn sms_conn; - - char *client_id; - + + + Status SmsRegisterClientReply + SmsConn sms_conn + char *client_id + + @@ -1641,11 +1508,12 @@ Status SmsRegisterClientReply(sms_conn, You should call the SmsGenerateClientID function to generate a globally unique client ID. - -char *SmsGenerateClientID(sms_conn) - - SmsConn sms_conn; - + + + char *SmsGenerateClientID + SmsConn sms_conn + + @@ -1663,19 +1531,16 @@ char *SmsGenerateClientID(sms_conn) To send a “Save Yourself” to a client, use SmsSaveYourself - -void SmsSaveYourself(sms_conn, save_type, shutdown, interact_style, fast) - - SmsConn sms_conn; - - int save_type; - - Bool shutdown; - - int interact_style; - - Bool fast; - + + + void SmsSaveYourself + SmsConn sms_conn + int save_type + Bool shutdown + int interact_style + Bool fast + + sms_conn @@ -1716,11 +1581,12 @@ void SmsSaveYourself(sms_conn, -void SmsSaveYourselfPhase2(sms_conn) - - SmsConn sms_conn; - + + + void SmsSaveYourselfPhase2 + SmsConn sms_conn + + @@ -1737,11 +1603,12 @@ void SmsSaveYourselfPhase2(sms_conn) To send an “Interact” message to a client, use SmsInteract - -void SmsInteract(sms_conn) - - SmsConn sms_conn; - + + + void SmsInteract + SmsConn sms_conn + + @@ -1760,11 +1627,12 @@ void SmsInteract(sms_conn) To send a “Save Complete” message to a client, use SmsSaveComplete - -void SmsSaveComplete(sms_conn) - - SmsConn sms_conn; - + + + void SmsSaveComplete + SmsConn sms_conn + + @@ -1781,11 +1649,12 @@ void SmsSaveComplete(sms_conn) To send a “Die” message to a client, use SmsDie - -void SmsDie(sms_conn) - - SmsConn sms_conn; - + + + void SmsDie + SmsConn sms_conn + + @@ -1802,11 +1671,12 @@ void SmsDie(sms_conn) To cancel a shutdown, use SmsShutdownCancelled - -void SmsShutdownCancelled(sms_conn) - - SmsConn sms_conn; - + + + void SmsShutdownCancelled + SmsConn sms_conn + + @@ -1824,15 +1694,14 @@ void SmsShutdownCancelled(sms_conn) In response to a “Get Properties” message, the session manager should call SmsReturnProperties - -void SmsReturnProperties(sms_conn, num_props, props) - - SmsConn sms_conn; - - int num_props; - - SmProp **props; - + + + void SmsReturnProperties + SmsConn sms_conn + int num_props + SmProp **props + + @@ -1858,15 +1727,14 @@ void SmsReturnProperties(sms_conn, To check that a client is still alive, you should use the IcePing function provided by the ICE library. To do so, the ICE connection must be obtained using the SmsGetIceConnection (see section 6.12, “Using Sms Informational Functions”). - -void IcePing(ice_conn, ping_reply_proc, client_data) - - IceConn ice_conn; - - IcePingReplyProc ping_reply_proc; - - IcePointer client_data; - + + + void IcePing + IceConn ice_conn + IcePingReplyProc ping_reply_proc + IcePointer client_data + + @@ -1886,19 +1754,13 @@ void IcePing(ice_conn, ping_r When the Ping reply is ready (if ever), the IcePingReplyProc callback will be invoked. A session manager should have some sort of timeout period, after which it assumes the client has unexpectedly died. - - -typedef void (*IcePingReplyProc)(); - - + + typedef void (*IcePingReplyProc) + IceConn ice_conn + IcePointer client_data + -void PingReplyProc(ice_conn, client_data) - - IceConn ice_conn; - - IcePointer client_data; - @@ -1917,11 +1779,12 @@ void PingReplyProc(ice_conn, When the session manager receives a “Connection Closed” message or otherwise detects that the client aborted the connection, it should call the SmsCleanUp function in order to free up the connection object. - -void SmsCleanUp(sms_conn) - - SmsConn sms_conn; - + + + void SmsCleanUp + SmsConn sms_conn + + @@ -1935,46 +1798,51 @@ void SmsCleanUp(sms_conn) Using Sms Informational Functions - -int SmsProtocolVersion(sms_conn) - - SmsConn sms_conn; - + + + int SmsProtocolVersion + SmsConn sms_conn + + SmsProtocolVersion returns the major version of the session management protocol associated with this session. - -int SmsProtocolRevision(sms_conn) - - SmsConn sms_conn; - + + + int SmsProtocolRevision + SmsConn sms_conn + + SmsProtocolRevision returns the minor version of the session management protocol associated with this session. - -char *SmsClientID(sms_conn) - - SmsConn sms_conn; - + + + char *SmsClientID + SmsConn sms_conn + + SmsClientID returns a null-terminated string for the client ID associated with this connection. You should call free on this pointer when the client ID is no longer needed. To obtain the host name of a client, use SmsClientHostName This host name will be needed to restart the client. - -char *SmsClientHostName(sms_conn) - - SmsConn sms_conn; - + + + char *SmsClientHostName + SmsConn sms_conn + + The string returned is of the form protocol/hostname, where protocol is one of {tcp, decnet, local}. You should call free on the string returned when it is no longer needed. - -IceConn SmsGetIceConnection(sms_conn) - - SmsConn sms_conn; - + + + IceConn SmsGetIceConnection + SmsConn sms_conn + + SmsGetIceConnection returns the ICE connection object associated with this session management connection object. The ICE connection object can be used to get some additional information about the connection. Some of the more useful functions which can be used on the IceConn are IceConnectionNumber and IceLastSequenceNumber For further information, see the Inter-Client Exchange Library standard. @@ -1984,38 +1852,28 @@ IceConn SmsGetIceConnection(sms_conn) If the session manager receives an unexpected protocol error from a client, an error handler is invoked by SMlib. A default error handler exists which simply prints the error message (it does not exit). The session manager can change this error handler by calling SmsSetErrorHandler - -SmsErrorHandler SmsSetErrorHandler(handler) - - SmsErrorHandler handler; - + + + SmsErrorHandler SmsSetErrorHandler + SmsErrorHandler handler + + The error handler. You should pass NULL to restore the default handler. SmsSetErrorHandler returns the previous error handler. The SmsErrorHandler has the following type: - - -typedef void (*SmsErrorHandler)(); - - + + typedef void (*SmsErrorHandler) + SmsConn sms_conn + Bool swap + int offending_minor_opcode + unsigned long offending_sequence_num + int error_class + int severity + IcePointer values + -void ErrorHandler(sms_conn, swap, offending_minor_opcode, offending_sequence_num, error_class, severity, values) - - SmsConn sms_conn; - - Bool swap; - - int offending_minor_opcode; - - unsigned long offending_sequence_num; - - int error_class; - - int severity; - - IcePointer values; - @@ -2224,11 +2082,12 @@ typedef struct { To free an individual property, use SmFreeProperty - -void SmFreeProperty(prop) - - SmProp *prop; - + + + void SmFreeProperty + SmProp *prop + + @@ -2239,14 +2098,13 @@ void SmFreeProperty(prop) To free the reason strings from the SmsCloseConnectionProc callback, use SmFreeReasons - -void SmFreeReasons(count, reasons) - - int count; - - char **reasons; - - + + + void SmFreeReasons + int count + char **reasons + + -- cgit v1.2.1