X hits on this document

PDF document

February 10, 2006 - page 236 / 238

934 views

0 shares

0 downloads

0 comments

236 / 238

int

err,

unsigned char *data,

unsigned int

_ data len),

/* Only use these to allocate/free OS handlers. */ os_handler_t *ipmi_alloc_os_handler(void); void ipmi_free_os_handler(os_handler_t *handler);

224

};

APPENDIX L. OS HANDLER INTERFACE (OS HANDLER.H)

void *cb_data); v o i d ( * d a t a b a s e _ f r e e ) ( o s _ h a n d l e r _ t * h a n d l e r unsigned char *data); ,

/* Sets the filename to use for the database to the one specified. The meaning is system-dependent. On *nix systems it defaults to $HOME/.OpenIPMI_db. This is for use by the user, OpenIPMI proper does not use this. */ i n t ( * d a t a b a s e _ s e t _ f i l e n a m e ) ( o s _ h a n d l e r _ t * h a n d l e r ,

char

*name);

/* Set the function to send logs to. */ v o i d ( * s e t _ l o g _ h a n d l e r ) ( o s _ h a n d l e r _ t * h a n d l e r ,

o s _ v l o g _ t

log_handler);

The data returned should be freed by database_free. Note that these routines are optional and do not need to be here, they

unsigned char *data,

Also, if

to

the

char

*key,

unsigned int

_ *fetch completed,

simply speed up operation when working correctly.

unsigned char **data,

unsigned int

* d a t a _ l e n ,

v o i d ( * g o t _ d a t a ) ( v o i d

* c b _ d a t a ,

fatal */

data_len); *handler,

these routines fail for operation of OpenIPMI.

*handler, *key,

i unsigned in n t ( * d a t a b a s e _ f i n d ) ( o s _ h a n d l e r _ t

t

some reason

it is not

It is not a

big deal.

i n t ( * d a t a b a s e _ s t o r e ) ( o s _ h a n d l e r _ char t

#ifdef __cplusplus } #endif

#endif /*

__

O S _ H A N D L E R _ H * /

Document info
Document views934
Page views934
Page last viewedSun Dec 11 04:35:41 UTC 2016
Pages238
Paragraphs8090
Words85809

Comments