Lines Matching refs:oid_table
84 oid_data oid_table[OID_MAX]; member
99 #define OID_GET_INDEX(data) ((sw_discovery_oid) (((data) - ((data)->discovery->oid_table))))
233 if (self->oid_table[self->oid_index].type == OID_UNUSED) { in oid_alloc()
234 self->oid_table[self->oid_index].type = type; in oid_alloc()
235 self->oid_table[self->oid_index].discovery = self; in oid_alloc()
237 assert(OID_GET_INDEX(&self->oid_table[self->oid_index]) == self->oid_index); in oid_alloc()
254 assert(self->oid_table[oid].type != OID_UNUSED); in oid_release()
256 self->oid_table[oid].type = OID_UNUSED; in oid_release()
257 self->oid_table[oid].discovery = NULL; in oid_release()
258 self->oid_table[oid].reply = NULL; in oid_release()
259 self->oid_table[oid].object = NULL; in oid_release()
260 self->oid_table[oid].extra = NULL; in oid_release()
261 self->oid_table[oid].service_data = NULL; in oid_release()
270 if (self->oid_table[oid].type == OID_UNUSED) in oid_get()
273 return &self->oid_table[oid]; in oid_get()
317 switch (self->oid_table[oid].type) { in client_callback()
320 reg_client_callback(&self->oid_table[oid], state); in client_callback()
325 …covery_browse_reply) self->oid_table[oid].reply)(self, oid, SW_DISCOVERY_BROWSE_INVALID, 0, NULL, … in client_callback()
364 memset((*self)->oid_table, 0, sizeof((*self)->oid_table)); in sw_discovery_init()