logo       

Re: Using APR for Harmony's native link to the OS?: msg#00975

java.harmony.devel

Subject: Re: Using APR for Harmony's native link to the OS?

> You can always still use plain old malloc(), right?

Unfortunately, all apr_*_create functions require apr_pool_t* as argument.

For example:

APR_DECLARE(apr_status_t) apr_file_open(apr_file_t **newf, const char *fname,
apr_int32_t flag, apr_fileperms_t perm,
apr_pool_t *pool);

APR_DECLARE(apr_status_t) apr_mmap_create(apr_mmap_t **newmmap,
apr_file_t *file, apr_off_t offset,
apr_size_t size, apr_int32_t flag,
apr_pool_t *cntxt);

APR_DECLARE(apr_status_t) apr_thread_mutex_create(apr_thread_mutex_t **mutex,
unsigned int flags,
apr_pool_t *pool);

Thank you,
Artem Aliev
Intel Middleware Products Division



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise