text_combined: ben morrow xupmorrowmeuk quoth fpnbvgingabuleucom iso88591qeduardo n hering id like ask help following problem c shared object called libtrmcso access source code trmch 11 functions succeeded writing extension 10 using h2xs tutorial called perlxstut problem remains send reference conversion function written perl c library important pieces code shown failed attempt solve problem trmch typedef struct int etalondouble channelparameter int setchanneltrmcchannelparameter channel failed attempt solve problem void setchanneltrmcname value_range_i value_range_v board_address sub_address board_type index mode pre_averaging scrutation_time priority_flag fifo_size etalon void etalon ppcode channeletalon etalon call_error setchanneltrmcchannel said calling function perl able call address c function would worked cant need write function c top section xs file takes two double arguments converts perl scalars calls perl function see perlcall details pass c function library difficult part case finding way pass perl sub call c function callback api doesnt appear include sort user data parameter tut bad api design discussion issue possible solutions end perlcall ben wed 06 aug 2008 162759 0100 deal reference function extension