You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bn...@apache.org on 2002/01/31 19:56:35 UTC

cvs commit: apr/include/arch/netware apr_private.h

bnicholes    02/01/31 10:56:35

  Modified:    include/arch/netware apr_private.h
  Log:
  Added the APIs for handling application NLM registration with the APR
  library NLM
  
  Revision  Changes    Path
  1.5       +18 -2     apr/include/arch/netware/apr_private.h
  
  Index: apr_private.h
  ===================================================================
  RCS file: /home/cvs/apr/include/arch/netware/apr_private.h,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- apr_private.h	18 Oct 2001 22:10:09 -0000	1.4
  +++ apr_private.h	31 Jan 2002 18:56:35 -0000	1.5
  @@ -71,7 +71,9 @@
   #include <sys/types.h>
   #include <stddef.h>
   #include <stdio.h>
  +#include <stdlib.h>
   #include <time.h>
  +#include <library.h>
   
   //#include "memcheck.h"
   
  @@ -155,8 +157,22 @@
   #define SIZEOF_CHAR            1
   #define SIZEOF_SSIZE_T         SIZEOF_INT
   
  -//unsigned __stdcall SignalHandling(void *);
  -//int thread_ready(void);
  +void netware_pool_proc_cleanup ();
  +
  +// library-private data...
  +extern int  gLibId;
  +extern void *gLibHandle;
  +
  +/* NLM registration routines for managing which NLMs
  +    are using the library. */
  +int register_NLM(void *NLMHandle);
  +int unregister_NLM(void *NLMHandle);
  +
  +/* Redefine malloc to use the library malloc call so 
  +    that all of the memory resources will be owned
  +    and can be shared by the library. */
  +#undef malloc
  +#define malloc(x) library_malloc(gLibHandle,x)
   
   #endif  /*APR_PRIVATE_H*/
   #endif  /*NETWARE*/