Lines Matching refs:pooh
35 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
42 if(tocopy < 1 || !pooh->sizeleft) in read_callback()
45 if(pooh->sizeleft < tocopy) in read_callback()
46 tocopy = pooh->sizeleft; in read_callback()
48 memcpy(ptr, pooh->readptr, tocopy);/* copy requested data */ in read_callback()
49 pooh->readptr += tocopy; /* advance pointer */ in read_callback()
50 pooh->sizeleft -= tocopy; /* less data left */ in read_callback()
59 struct WriteThis pooh; in test() local
61 pooh.readptr = data; in test()
62 pooh.sizeleft = strlen(data); in test()
88 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); in test()
94 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()