version 1.1, 2012/02/21 22:30:18
|
version 1.1.1.1, 2012/10/09 09:06:54
|
Line 3
|
Line 3
|
Functions for maintaining handles on objects. */ |
Functions for maintaining handles on objects. */ |
|
|
/* |
/* |
* Copyright (c) 2009-2010 by Internet Systems Consortium, Inc. ("ISC") | * Copyright (c) 2009-2010,2012 by Internet Systems Consortium, Inc. ("ISC") |
* Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC") |
* Copyright (c) 2004-2007 by Internet Systems Consortium, Inc. ("ISC") |
* Copyright (c) 1999-2003 by Internet Software Consortium |
* Copyright (c) 1999-2003 by Internet Software Consortium |
* |
* |
Line 252 static isc_result_t omapi_handle_lookup_in (omapi_obje
|
Line 252 static isc_result_t omapi_handle_lookup_in (omapi_obje
|
omapi_handle_table_t *table, |
omapi_handle_table_t *table, |
int op) |
int op) |
{ |
{ |
omapi_handle_table_t *inner; |
|
omapi_handle_t scale, index; |
omapi_handle_t scale, index; |
|
|
if (!table || table->first > h || table->limit <= h) |
if (!table || table->first > h || table->limit <= h) |
Line 282 static isc_result_t omapi_handle_lookup_in (omapi_obje
|
Line 281 static isc_result_t omapi_handle_lookup_in (omapi_obje
|
handle must be the subtable of this table whose index into this |
handle must be the subtable of this table whose index into this |
table's array of children is the handle divided by the scale. */ |
table's array of children is the handle divided by the scale. */ |
index = (h - table->first) / scale; |
index = (h - table->first) / scale; |
inner = table->children[index].table; |
|
|
|
return(omapi_handle_lookup_in(o, h, table->children[index].table, op)); |
return(omapi_handle_lookup_in(o, h, table->children[index].table, op)); |
} |
} |