Changeset 1135 in svn for trunk/xcache/xc_shm.h


Ignore:
Timestamp:
2012-08-09T11:04:02+02:00 (3 years ago)
Author:
Xuefer
Message:

refactor: s/mem/allocator/

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        11acinclude.m4
        22aclocal.m4
         3allocator_test
        34autom4te.cache
        45build
         
        1617conftest.c
        1718.deps
         19devel.fpm
        1820devel.ini
        1921devel.php
        20 devel.fpm
        2122.gdb_history
        2223include
  • trunk/xcache/xc_shm.h

    r1040 r1135  
    11#ifndef XC_SHM_H
    22#define XC_SHM_H
     3
     4#include <stdlib.h>
     5
    36typedef struct _xc_shm_handlers_t xc_shm_handlers_t;
    47
     
    1316typedef size_t xc_shmsize_t;
    1417
    15 #include "xc_mem.h"
    16 
    1718/* shm */
    1819#define XC_SHM_CAN_READONLY(func) int   func(xc_shm_t *shm)
     
    2526#define XC_SHM_DESTROY(func)      void func(xc_shm_t *shm)
    2627
    27 #define XC_SHM_MEMINIT(func)      xc_mem_t *func(xc_shm_t *shm, xc_memsize_t size)
    28 #define XC_SHM_MEMDESTROY(func)   void func(xc_mem_t *mem)
     28#define XC_SHM_MEMINIT(func)      void *func(xc_shm_t *shm, xc_shmsize_t size)
     29#define XC_SHM_MEMDESTROY(func)   void func(void *mem)
    2930
    3031#define XC_SHM_HANDLERS(name)    { \
    31     NULL                           \
    32     , xc_##name##_can_readonly     \
     32    xc_##name##_can_readonly       \
    3333    , xc_##name##_is_readwrite     \
    3434    , xc_##name##_is_readonly      \
     
    4444
    4545struct _xc_shm_handlers_t {
    46     const xc_mem_handlers_t *memhandlers;
    4746    XC_SHM_CAN_READONLY((*can_readonly));
    4847    XC_SHM_IS_READWRITE((*is_readwrite));
Note: See TracChangeset for help on using the changeset viewer.