X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fnmem.h;fp=include%2Fnmem.h;h=227d99ff5b7688cf5fe21ead39aeaa0299ab5be3;hp=0000000000000000000000000000000000000000;hb=a309d6ece06c0ab732d98c59f2718efaebd01ec6;hpb=d1a20e8d865a4ef50a024d5076f8aa2a8667500d diff --git a/include/nmem.h b/include/nmem.h new file mode 100644 index 0000000..227d99f --- /dev/null +++ b/include/nmem.h @@ -0,0 +1,40 @@ +/* + * Copyright (c) 1995, Index Data. + * + * Permission to use, copy, modify, distribute, and sell this software and + * its documentation, in whole or in part, for any purpose, is hereby granted, + * provided that: + * + * 1. This copyright and permission notice appear in all copies of the + * software and its documentation. Notices of copyright or attribution + * which appear at the beginning of any file must remain unchanged. + * + * 2. The names of Index Data or the individual authors may not be used to + * endorse or promote products derived from this software without specific + * prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR + * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF + * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THIS SOFTWARE. + * + * $log$ + */ + +#ifndef NMEM_H +#define NMEM_H + +typedef struct nmem_control *NMEM; + +void nmem_reset(NMEM n); +void *nmem_malloc(NMEM n, int size); +int nmem_total(NMEM n); +NMEM nmem_create(void); +void nmem_destroy(NMEM n); + +#endif