So the signature of your function has iovec **? If it does, what that means is that it can modify the value of hdr_names nad hdr_values in your code, as you are giving pointers to them. If so, try checking whether they change when you call the function. On the other hand, if the function signature is iovec*, then you are doing it wrong and need to remove the &. That would definitely call a segfault.
BTW, do you get any warnings during compilation? --Hoyt On Thu, May 14, 2009 at 11:03 PM, Mohamed Lrhazi <[email protected]> wrote: > On Fri, May 15, 2009 at 1:50 AM, Hoyt Koepke <[email protected]> wrote: >> Are the &hrd_names and &hdr_values in this line correct? If so, do >> you know what xz_trans... does with them? Since it's a double ptr as >> written, your original ptr might be modified. >> >> result=xz_transaction_hdrs_modify(handle,ctx,&hdr_names,&hdr_values,del_count,add_count,replace_count) >> > > That is the signature of the function in the c lib's header file. What > could it mean that it is expecting a double pointer? a pointer of an > array of structs? > > What the function does is allow me to tell it which headers, as in > HTTP speak, I want added/deleted/replaced, from the current HTTP > transaction it is handling for me. > > So I would guess it simply needs to read all those strings am passing in. > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev > -- ++++++++++++++++++++++++++++++++++++++++++++++++ + Hoyt Koepke + University of Washington Department of Statistics + http://www.stat.washington.edu/~hoytak/ + [email protected] ++++++++++++++++++++++++++++++++++++++++++ _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
