tor 2006-03-09 klockan 15:13 -0500 skrev Jeremy Hall: > I am using xmalloc and xfree for allocation and deallocation of my list > structures, and xmemcpy to copy memory, but I am having real problems > when I try to pass a datastructure to wccp2AssignBuckets probably > because I am not using cbdataAllocate (I think that is what I need to > use) and when eventAdd goes to lock the memory it calls wccp2Init for > some reason, screwing up all of the structures etc.
If you pass the data to some callback based part then it should be a cbdata type. See the programmers guide for details on adding your cbdata type (it's quite simple, just a few lines more and you are done). But this does not explain why wccp2Init is called again. > Any assistance would be appreciated. I can provide the new wccpv2.c if > you'd like. Would help to comment on what you have done. Regards Henrik
signature.asc
Description: Detta är en digitalt signerad meddelandedel
