Lines Matching refs:pooh
37 struct WriteThis *pooh = (struct WriteThis *)userp; in read_callback() local
44 if(tocopy < 1 || !pooh->sizeleft) in read_callback()
47 if(pooh->sizeleft < tocopy) in read_callback()
48 tocopy = pooh->sizeleft; in read_callback()
50 memcpy(ptr, pooh->readptr, tocopy);/* copy requested data */ in read_callback()
51 pooh->readptr += tocopy; /* advance pointer */ in read_callback()
52 pooh->sizeleft -= tocopy; /* less data left */ in read_callback()
61 struct WriteThis pooh; in test() local
73 pooh.readptr = data; in test()
74 pooh.sizeleft = strlen(data); in test()
95 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft); in test()
101 test_setopt(curl, CURLOPT_READDATA, &pooh); in test()