Lines Matching refs:mid
263 INT_PTR mid; in OnServiceAdd() local
272 mid = 0; in OnServiceAdd()
277 mid = ( lo + hi ) / 2; in OnServiceAdd()
278 result = entry->name.CompareNoCase( mBrowserEntries[ mid ].name ); in OnServiceAdd()
285 hi = mid - 1; in OnServiceAdd()
289 lo = mid + 1; in OnServiceAdd()
294 mBrowserEntries[ mid ].ip = entry->ip; in OnServiceAdd()
295 mBrowserEntries[ mid ].text = entry->text; in OnServiceAdd()
301 mid += 1; in OnServiceAdd()
303 mBrowserEntries.InsertAt( mid, *entry ); in OnServiceAdd()
304 mBrowserList.InsertItem( mid, entry->name ); in OnServiceAdd()
319 INT_PTR mid; in OnServiceRemove() local
328 mid = 0; in OnServiceRemove()
333 mid = ( lo + hi ) / 2; in OnServiceRemove()
334 result = entry->name.CompareNoCase( mBrowserEntries[ mid ].name ); in OnServiceRemove()
341 hi = mid - 1; in OnServiceRemove()
345 lo = mid + 1; in OnServiceRemove()
350 mBrowserList.DeleteItem( mid ); in OnServiceRemove()
351 mBrowserEntries.RemoveAt( mid ); in OnServiceRemove()