X hits on this document

PDF document

February 10, 2006 - page 227 / 238

635 views

0 shares

0 downloads

0 comments

227 / 238

* * * * * * * * * *

look up the data item by name.

Note that you can call

ipmi_con_register_attribute multiple times. create the item, the rest of the times will item.

The first return the

time will existing

When the connection is destroyed, the destroy function will be called on the attribute so the memory (or anything else) can be cleaned up.

This is especially for use by RMCP+ payloads so they may attach

* data to the connection they are associated with. */ t y p e d e f s t r u c t i p m i _ c o n _ a t t r _ s i p m i _ c o n _ a t t r _ t ;

/*

Attr init function.

an

error

value.

Will

Return the data

only

be

called

item once

in the data field. for the attribute.

Returns */

t y p e d e f i n t ( * i p m i _ c o n _ a t t r _ i n i t _ c b ) ( i p m i _ c o n _ t * c o n , v o i d * c b void **data); _ d a t a ,

/*

Called

when

the

attribute

is

destroyed.

Note

that

this

may

happen

after connection destruction, so the connection may not exist any more. */ t y p e d e f v o i d ( * i p m i _ c o n _ a t t r _ k i l l _ c b ) ( v o i d * c b _ d a t a , v o i d * d a t a ) ;

i n t i p m i _ c o n _ r e g i s t e r _ a t t r i b u t e ( i p m i _ c o char n _ t

*con, *name,

i p m i _ c o n _ a t t r _ i n i t _ c b i n i t , i p m i _ c o n _ a t t r _ k i l l _ c b d e s t r o y ,

i n t i p m i _ c o n _ f i n d _ a t t r i b u t e ( i p m i _ c o n char _ void ipmi _ t _ con attr t _ *con , *name,

*cb_data, **attr);

ipmi_con_attr_t **attr); void *ipmi_con_attr_get_data(ipmi_con_attr_t *attr); /* You must call the put operation of every attribute returned by

register or find. */ v o i d i p m i _ c o n _ a t t r _ p u t ( i p m i _ c o n _ a t t r _ t * a t t r ) ; i n t i p m i _ c o n _ a t t r _ i n i t ( i p m i _ c o n _ t * c o n ) ; v o i d i p m i _ c o n _ a t t r _ c l e a n u p ( i p m i _ c o n _ t * c o n ) ;

#ifdef __cplusplus } #endif

#endif /*

_

I P M I _ C O N N _ H * /

215

Document info
Document views635
Page views635
Page last viewedThu Dec 08 10:23:04 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments