Changeset 381 in svn for trunk/xc_shm.h


Ignore:
Timestamp:
2007-05-10T03:26:12+02:00 (8 years ago)
Author:
Xuefer
Message:

merged [380] from 1.2: make life easier for debugging

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/xc_shm.h

    r305 r381  
    11#ifndef XC_SHM_H
    22#define XC_SHM_H
    3 typedef struct _xc_shm_t xc_shm_t;
     3typedef struct _xc_shm_handlers_t xc_shm_handlers_t;
     4
     5#ifndef XC_SHM_IMPL
     6struct _xc_shm_t {
     7    const xc_shm_handlers_t *handlers;
     8};
     9#define XC_SHM_IMPL _xc_shm_t
     10#endif
     11
     12typedef struct XC_SHM_IMPL xc_shm_t;
    413typedef size_t xc_shmsize_t;
    514
     
    3443}
    3544
    36 typedef struct {
     45struct _xc_shm_handlers_t {
    3746    const xc_mem_handlers_t *memhandlers;
    3847    XC_SHM_CAN_READONLY((*can_readonly));
     
    4655    XC_SHM_MEMINIT((*meminit));
    4756    XC_SHM_MEMDESTROY((*memdestroy));
    48 } xc_shm_handlers_t;
     57};
    4958
    50 
    51 #ifndef XC_SHM_IMPL
    52 struct _xc_shm_t {
    53     const xc_shm_handlers_t *handlers;
    54 };
    55 #endif
    5659typedef struct _xc_shm_scheme_t xc_shm_scheme_t;
    5760
Note: See TracChangeset for help on using the changeset viewer.