Prosody generic: API: sm_close_prosody

Prototype Definition

int sm_close_prosody(struct sm_close_prosody_parms *closep)

Parameters

*closep
a structure of the following type:
typedef struct sm_close_prosody_parms {
	tSMCardId card_id;					/* in */
} SM_CLOSE_PROSODY_PARMS;

Description

Reverses the effect of sm_open_prosody_x(), or sm_open_prosody_s_v3(). If, after closing the card, you want to use Prosody API functions which refer to this card you must invoke sm_open_prosody_x(), or sm_open_prosody_s_v3() again. It is a serious error to close a card on which there are open modules.

Fields

card_id
The card to close.

Returns

0 if call completed successfully, otherwise a standard error.


This function is part of the Prosody generic API.