X hits on this document

PDF document

February 10, 2006 - page 226 / 238

580 views

0 shares

0 downloads

0 comments

226 / 238

214

APPENDIX K. CONNECTION HANDLING INTERFACE (IPMI CONN.H)

void

_ _ *check cb data,

_ _ _ _ ipmi conn oem check done done,

void

_ _ *done cb data);

i n t i p m i _ r e g i s t e r _ c o n n _ o e m _ c h e c k ( i p m i _ c o n n _ o e m _ c h e c k c h e c k ,

void

* c b _ d a t a ) ;

i n t i p m i _ d e r e g i s t e r _ c o n n _ o e m _ c h e c k ( i p m i _ c o n n _ o e m _ c h e c k c h e c k ,

void

* c b _ d a t a ) ;

/* Should be called by the connection code for any new connection. */

i n t i p m i _ c o n n _ c h e c k _ o e m _ h a n d l e r s ( i p m i *conn, _ c o n _ t i p m i _ c o n n _ o e m _ c h e c k _ d o n e d o n e ,

void

* c b _ d a t a ) ;

/* Generic message handling */ void ipmi_handle_rsp_item(ipmi_con_t ipmi_msgi_t

*ipmi, *rspi,

i p m i _ l l _ r s p _ h a n d l e r _ t r s p _ h a n d l e r ) ;

v o i d i p m i _ h a n d l e _ r s p _ i t e m _ c o p y m s g ( i p m i _ c o n _ t i p m i _ m s g i _ t

*ipmi, *rspi,

c o n s t i p m i _ m s g _ t

*msg,

i p m i _ l l _ r s p _ h a n d l e r _ t r s p _ h a n d l e r ) ;

ipmi_msgi_t

*rspi,

const ipmi_addr_t

*addr,

unsigned int

addr_len,

const ipmi_msg_t

*msg,

v o i d i p m i _ h a n d l e _ r s p _ i t e m _ c o p y a l l ( i p m i _ c o n _ t

*ipmi,

i p m i _ l l _ r s p _ h a n d l e r _ t r s p _ h a n d l e r ) ;

/*

You

should

use

these

for

allocating

and

freeing

mesage

items.

Note

that if you set item->msg.data to a non-NULL value that is not i t e m - > d a t a , t h e s y s t e m w i l l f r e e i t w i t h i p m i _ f r e e _ m s g _ i t e m _ d a t a ( ) . S o y o u s h o u l d a l l o c a t e i t w i t h i p m i _ a l l o c _ m s g _ i t e m _ d a t a 9 ) . ipmi_msgi_t *ipmi_alloc_msg_item(void); void ipmi_free_msg_item(ipmi_msgi_t *item); void *ipmi_alloc_msg_item_data(unsigned int size); void ipmi_free_msg_item_data(void *data); /* Move the data from the old message item to the new one, NULL-ing * /

out the

old item’s

data.

This will

data if

necessary.

This

will *not*

free

the

copy

the

new_item’s original data items, just the

v address and message. */ o i d i p m i _ m o v e _ m s g _ i t e m ( i p m i _ m s g i _ t * n e w _ i t e m

, i p m i _ m s g i _ t * o l d _ i t e m ) ;

These

are named items

item

to

a connection by

may

create

can

then

/* * *

Connection attributes.

to

attach

a

void

data

that code

name.

It

Document info
Document views580
Page views580
Page last viewedMon Dec 05 15:00:42 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments