Thomas Fletcher
|
Re: How to find ocb after iofunc_open_default ?
|
Thomas Fletcher
08/05/2008 5:28 PM
post11468
|
Re: How to find ocb after iofunc_open_default ?
You can use the (not documented in the current release)
void *resmgr_ocb(resmgr_context_t *ctp)
call.
This may not exist in your libc, and you may have to instead use:
void *_resmgr_ocb(resmgr_context_t *ctp, struct _msg_info *info)
which is documented, but isn't quite as handy since it takes a few more
arguments.
Thomas
On Mon, Aug 4, 2008 at 1:24 PM, bob lipka <community-noreply@qnx.com> wrote:
> Below is a snippet from resource manager tutorial. How do I point to newly
> created ocb in the place indicated by a comment? I extended ocb structure
> and I need to initialize my extra fields there.
>
> int
> io_open (resmgr_context_t *ctp, io_open_t *msg,
> RESMGR_HANDLE_T *handle, void *extra)
> int sts;
> sts = iofunc_open_default (ctp, msg, handle, extra);
> if (sts == EOK) {
> //HOW TO POINT TO OCB HERE?
> log_open_request (ctp, msg);
> }
> return (sts);
> }
>
> RobertL
>
> _______________________________________________
> OSTech
> http://community.qnx.com/sf/go/post11405
>
>
|
|
|