[sr-dev] How to create an pv_spec_t for an avp from just the name?

Alex Hermann alex at speakup.nl
Fri Aug 19 15:30:59 CEST 2011


Hello,


i need to create a pv_spec_t for an avp, where i only have the name of the avp 
in a str (0 terminated). Is there a helper function to do this?

I know pv_parse_spec() exists, but is needs "$avp(name)" as input and is a bit 
of a heavy function. I only have "name", and need to get the same pv_spec_t as 
if pv_parse_spec() was called with "$avp(name)" as parameter.
-- 
Greetings,

Alex Hermann




More information about the sr-dev mailing list