Changeset 1135 for trunk/xcache/xc_shm.h
- Timestamp:
- 2012-08-09T11:04:02+02:00 (10 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
xcache/xc_shm.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
trunk/xcache/xc_shm.h
r1040 r1135 1 1 #ifndef XC_SHM_H 2 2 #define XC_SHM_H 3 4 #include <stdlib.h> 5 3 6 typedef struct _xc_shm_handlers_t xc_shm_handlers_t; 4 7 … … 13 16 typedef size_t xc_shmsize_t; 14 17 15 #include "xc_mem.h"16 17 18 /* shm */ 18 19 #define XC_SHM_CAN_READONLY(func) int func(xc_shm_t *shm) … … 25 26 #define XC_SHM_DESTROY(func) void func(xc_shm_t *shm) 26 27 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) 29 30 30 31 #define XC_SHM_HANDLERS(name) { \ 31 NULL \ 32 , xc_##name##_can_readonly \ 32 xc_##name##_can_readonly \ 33 33 , xc_##name##_is_readwrite \ 34 34 , xc_##name##_is_readonly \ … … 44 44 45 45 struct _xc_shm_handlers_t { 46 const xc_mem_handlers_t *memhandlers;47 46 XC_SHM_CAN_READONLY((*can_readonly)); 48 47 XC_SHM_IS_READWRITE((*is_readwrite));
Note: See TracChangeset
for help on using the changeset viewer.

