# gsf-shared-memory

## Name

gsf-shared-memory --

## Synopsis

    #define     GSF_SHARED_MEMORY_TYPE
    #define     GSF_SHARED_MEMORY               (o)
    struct      GsfSharedMemory;
    GType       gsf_shared_memory_get_type      (void);
    GsfSharedMemory* gsf_shared_memory_new      (void *buf,
                                                 gsf_off_t size,
                                                 gboolean needs_free);
    GsfSharedMemory* gsf_shared_memory_mmapped_new
                                                (void *buf,
                                                 gsf_off_t size);

## Description

## Details

### GSF_SHARED_MEMORY_TYPE

    #define GSF_SHARED_MEMORY_TYPE	(gsf_shared_memory_get_type ())

### GSF_SHARED_MEMORY()

    #define GSF_SHARED_MEMORY(o)	(G_TYPE_CHECK_INSTANCE_CAST ((o), GSF_SHARED_MEMORY_TYPE, GsfSharedMemory))

o : |

### struct GsfSharedMemory

    struct GsfSharedMemory {

    	GObject g_object;
    	void *buf;
    	gsf_off_t size;

    	gboolean needs_free;
    	gboolean needs_unmap;
    };

### gsf_shared_memory_get_type ()

    GType       gsf_shared_memory_get_type      (void);

Returns : |

### gsf_shared_memory_new ()

    GsfSharedMemory* gsf_shared_memory_new      (void *buf,
                                                 gsf_off_t size,
                                                 gboolean needs_free);

buf : |
size : |
needs_free : |
Returns : |

### gsf_shared_memory_mmapped_new ()

    GsfSharedMemory* gsf_shared_memory_mmapped_new
                                                (void *buf,
                                                 gsf_off_t size);

buf : |
size : |
Returns : |