* Create a new protocol decoder instance.
*
* @param sess The session holding the protocol decoder instance.
* Create a new protocol decoder instance.
*
* @param sess The session holding the protocol decoder instance.
* @param decoder_id Decoder 'id' field.
* @param options GHashtable of options which override the defaults set in
* the decoder class. May be NULL.
* @param decoder_id Decoder 'id' field.
* @param options GHashtable of options which override the defaults set in
* the decoder class. May be NULL.
if (!(dec = srd_decoder_get_by_id(decoder_id))) {
srd_err("Protocol decoder %s not found.", decoder_id);
if (!(dec = srd_decoder_get_by_id(decoder_id))) {
srd_err("Protocol decoder %s not found.", decoder_id);
* Stack a decoder instance on top of another.
*
* @param sess The session holding the protocol decoder instances.
* Stack a decoder instance on top of another.
*
* @param sess The session holding the protocol decoder instances.
* @param di_bottom The instance on top of which di_top will be stacked.
* @param di_top The instance to go on top.
*
* @param di_bottom The instance on top of which di_top will be stacked.
* @param di_top The instance to go on top.
*
struct srd_decoder_inst *di_bottom,
struct srd_decoder_inst *di_top)
{
struct srd_decoder_inst *di_bottom,
struct srd_decoder_inst *di_top)
{
* @param inst_id The instance ID to be found.
*
* @return Pointer to struct srd_decoder_inst, or NULL if not found.
* @param inst_id The instance ID to be found.
*
* @return Pointer to struct srd_decoder_inst, or NULL if not found.